今天用 ws.WriteLine并不能写到txt文件里,有办法嘛?
vb.net吧
全部回复
仅看楼主
level 1
涂色书 楼主
If SaveFileDialog1.ShowDialog <> Windows.Forms.DialogResult.Cancel Then
Dim savefile As FileStream
Dim savepath As String
savepath = (SaveFileDialog1.FileName)
savefile = New FileStream(savepath, FileMode.Append)
Dim ws As StreamWriter
ws = New StreamWriter(savefile)
For n = 0 To UBound(XX)
Dim str As String = CStr(XX(n)) + "," + CStr(YY(n)) + "," + CStr(ZZ(n))
ws.WriteLine(str)
Next
savefile.Close()
End If
[乖]
2015年10月12日 14点10分 1
level 9
这个应该是可以的,明天有空帮你看看,或者我把我的发你看看
2015年10月12日 16点10分 2
谢谢啦,看CSDN上的说加上ws.Flush(),已经解决了
2015年10月13日 10点10分
1