VBA中遇到读写文本的问题,请帮忙解决!
VBA中遇到读写文本文件的错误!
我定义一个变量数祖:
TYPE DATA
STR1 AS STRING*128
STR2 AS STRING*128
END
我要把数组写到一文本中,
OPEN "c:\sF.txt" for radom as #1 len=len(data(1))
for i=1 to lngIndex
put #1,,data(i)
next i
close #1
有时会有错误提示:运行中错误59,记录长度错误
在读取sF.txt数据到data()中也会出现类似错误,
请执教!