Forum Moderators: phranque

Message Too Old, No Replies

How do you "write" to a file if what you're writing has quotes?

Such as using a batch file to write some HTML to a file...

         

HughMungus

7:56 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I know how to write to a file using batch files and windows scripting host.

What's driving me nuts is how I'd write this to a file (e.g., using echo or a.WriteLine; the quotes screw up the syntax):

<A HREF="whatever.htm">Whatever</A>

bcolflesh

8:00 pm on Feb 2, 2005 (gmt 0)

HughMungus

8:35 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure I'm following that...

bcolflesh

8:36 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Double up on the quote.

HughMungus

10:50 pm on Feb 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OOps nevermind. It was a problem with python...in which I can use \ to escape the quotes. Thanks!