VB对文本文件的操作,如何取消文本中的""?
Open App.Path & "\合并发票.txt " For Output As #1
Write #1, text1.Text
Close #1
如上所示,输出结果如下:
"我爱北京天安门 "
请问如何取消输出文件中的 " "
在线等,马上给分?
[解决办法]
write写入文件,字符串会加 " ",print就不会
试试这个就明白了
Private Sub Command1_Click()
Open "d:\ss.txt " For Output As #1
Write #1, "我们 "
Print #1, "你们 "
Close 1
End Sub