PDA

View Full Version : writing "


andrewhan4
03-23-2001, 07:28 PM
Yet more problems with my script, I am trying to write " to a file using the .WriteLine command.

Take this as an example

MyFile.WriteLine ("FriendlyName=" & Read2)

When writen to the file you get:
FriendlyName=(contents of read2 varable)

What I need in the file:
"FriendlyName"=(contents of read2 varable)

RWSchlatter
03-26-2001, 12:00 AM
Start and end the string using double quotes as you did, for each double quote symbol you want to have in the output, code it twice in the string:

MyFile.WriteLine ("""FriendlyName=""" & Read2)

______________
Regards - Richard