writeline function without " "

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
 
M

M. Zeeshan Mustafa

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top