Quotation marks in a string

F

Fabian Grodek

Hi,
I want to run a macro that writes out to a text file the following string:
<gamma unit="DEG"> 0.0 </gamma>

I've tried the following method:
Write #1, "<gamma unit=""DEG""> 0.0 </gamma>"

But then I get exactly that:
"<gamma unit=""DEG""> 0.0 </gamma>"

Of course, I don't want the double quotation marks, but only once (i.e.,
"DEG", not ""DEG"").

Any hint will be greatly appreciated.
Fabian
 
F

Fabian Grodek

Well, I've just found the answer myself :)
Use Print instead of Write.
Thanks Fabian.
Fabian
 
F

Fabian Grodek

Thanks Henry.
That's another option if I need to use the "Write" method anyway.
Fabian
 

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