WriteLine()

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When using WriteLine to append to a file it does not strip the quotation marks when writing. I am trying to find a way to strip the quotations from writing to the specified file

Example
FileOpen(1, "File",OutputMode.Output
WriteLine(1, "This is a test."
FileClose(1

It creates the file and adds this line
"This is a test.

Also, related to that question is this: Is it possible to use ASCII characters to add quotation marks?
 
Brian,
When using WriteLine to append to a file it does not strip the quotation marks when writing.

Use PrintLine instead of WriteLine if you don't want the ".

Also, related to that question is this: Is it possible to use ASCII characters to add quotation marks?

Not sure what you mean by that. If you want to write quotation marks,
why not just put it in a string?



Mattias
 
Perfect, thanks

I was looking to use " inside a line. Such as: This is a "test". Then I found Chr(34).
 
Brian,
I was looking to use " inside a line. Such as: This is a "test". Then I found Chr(34).

You don't need Chr() for that, you can write the string literal

"This is a ""test""."



Mattias
 
Back
Top