Write in a text file without vbCrLf vb6
Posted on 2009-04-13
I need to write in a text file in Visual Basic 6 some text lines but without the vbCrLf automatically inserted at the end of the line. If i use the following code:
Open App.Path & "\TextFile.txt" For Output As #1
Print #1, "Some text"
this automatically inserts me an vbCrLf (Enter key) at the end of every line. I need to be able to choose if i want to insert Chr(13) or Chr(10) or both in a construction like this:
Print #1, "Some text" & Chr(13)
How can i do this?