如果想写一个排列整齐的文本,可以申明一个类型例如
Public(Private) Type
Name as string *32
PhoneCode as integer
end type
然后再使用,Open语句打开文件,使用Input ,Ouput来写入或读出
如果你要读取其它原有的文本,最好使用line等语句
open filename for append as #1
print #1,text1.text
close #1
open filename for input as #2
do while not eof(2)
line input #1,strTemp
text1.text = text1.text & strtemp &vbcrlf
loop
close #2