VB 导出TXT

怎么在创建的文件中输入文字
Open "c:\aaa.TXT" For Append As #1
怎样在输入文字后,就是写到记事本中以后,带着那个不换行或换行符?
--------------------------------------------------------------------------------
 print #1,"你要输出的文字"
跟 Output一样的
--------------------------------------------------------------------------------
 Dim file as string,FF As Integer
file="C:\a.txt"
FF=FreeFile
open file for Append As #FF
Print #FF,"输出此段文字后换行"
Close #FF

Dim file as string,FF As Integer
file="C:\a.txt"
FF=FreeFile
open file for Append As #FF
Print #FF,"后面加了分号,所以输出此段文字后不换行";
Close #FF

 

另外:Append就是在旧的内容上插入,Output 就是覆盖写入,Input就是读取的意思

posted @ 2013-05-09 08:52  shoupifeng  阅读(1077)  评论(0编辑  收藏  举报