请教:用 Open strFileName For Output As #1 写文件,怎么让文件的内容没有双引号阿?
如我要写"this is my text!",我只想在文件里面显示 this is my text!,而不要 “this is my text!”,就是说去掉前后的双引号.谢谢!!
如我要写"this is my text!",我只想在文件里面显示 this is my text!,而不要 “this is my text!”,就是说去掉前后的双引号.谢谢!!
调试欢乐多
Print #1, "FFF"
Close #1
应该是用print不用write吧
这个问题好奇怪
第一种可能:该兄弟一位VB中显示字串的"会写到文件中.
其实strtmp="this is my text!",最后Print #1, strTmp不会将双引号写入的;
第二种可能:该兄是不是想清除掉字串中的确实存在的",有待明察.
则:
for i=1 to len(tmp)
if mid(tmp,i,1)=""" then tmp1=tmp1 & mid(tmp,i,1)
next i