私はこのコードを持っています:
Dim FILE_NAME As String = "C:\filename.txt"
Dim objWriter As New System.IO.StreamWriter(FILE_NAME)
objWriter.Write(TextBox1.Text)
objWriter.Close()
しかし、私はこのようなものを作りたいです (以下のテキストのobjWriter.Write(TextBox.Text)に注意してください):
Dim FILE_NAME As String = "C:\filename.txt"
Dim objWriter As New System.IO.StreamWriter(FILE_NAME)
objWriter.Write("Lorem ipsum dolor sit amet, consectetur adipiscing objWriter.Write(TextBox1.Text).
Duis dignissim, lacus vel tincidunt pellentesque, lacus ipsum venenatis libero,
faucibus iaculis lectus diam id libero. Mauris interdum augue id lacus
commodo consequat. objWriter.Write(TextBox2.Text) et ligula sed sapien")
objWriter.Close()
アップデート:
実際の出力:
Lorem ipsum dolor sit amet, consectetur adipiscing objWriter.Write(TextBox1.Text). Duis dignissim、lacus vel tincidunt pellentesque、lacus ipsum venenatis libero、commodo consequat。TEST et ligula sed sapien
必要な出力(私は頭に行きたい):
Lorem ipsum dolor sit amet,
consectetur adipiscing objWriter.
Write(TextBox1.Text).
Duis dignissim, lacus
vel tincidunt pellentesque,
lacus ipsum venenatis libero,
commodo consequat. TEST et ligula sed sapien