![]() |
#2
tw_love_code2014-05-05 08:28
回复 楼主 燕之峰
|
各位网友好,下面是VB写入文件内容的一段代码
text1.text=""
open "myfile.txt" for input as #1
do while not eof(1)
line input #1,inputdats
..........
在上面的代码中do while not eof(1),括号中的1,是文件号吗,如是文件号为什么不用#1呢。
请指导,谢谢