writeline function without " "

  • Thread starter Thread starter Jurgen Oerlemans
  • Start date Start date
J

Jurgen Oerlemans

Hello ,

I use the following to write to a file:

FileOpen(1, FileName, OpenMode.Output) ' Open file for output.
WriteLine(1, TextBox11.Text)
WriteLine(1, "Test text")
FileClose(1)
In the text file each line begins with " (double quote) and ends with ".
Is there a way to write to a file without the double quotes?

Best regards, Jurgen Oelremans
 
WriteLine is designed to print your string(s) in double
quote, and if you are passing an array, it will put commas
to separate them. Use PrintLine if you just want to print
the *text*.

However Cor's idea to use StreamWriter is more efficient
and reliable way.
 
Back
Top