Dim strFilePath As String = "F:\\1.txt"
Dim sw As System.IO.StreamWriter = New System.IO.StreamWriter(strFilePath, False)
Dim temp As String = "1111111111111111111111111"
sw.WriteLine(temp)
sw.Flush()
sw.Close()
sw = Nothing
Dim sw As System.IO.StreamWriter = New System.IO.StreamWriter(strFilePath, False)
Dim temp As String = "1111111111111111111111111"
sw.WriteLine(temp)
sw.Flush()
sw.Close()
sw = Nothing
如果 Dim sw As System.IO.StreamWriter = New System.IO.StreamWriter(strFilePath, False)
改成 Dim sw As System.IO.StreamWriter = New System.IO.StreamWriter(strFilePath, true)
就是往後追加的
沒有留言:
張貼留言