How to WRITE or PRINT a string containing quotes to a file?
Posted: Sat Apr 02, 2005 12:28 pm
Hello,
I'm not a programmer, but like to dabble in QuickBasic, and am currently stumped!
I'd like to write a string of data to a sequential (readable, ASCII)
file that contains quotes in it. Specifically, I am assembling an MS-DOS
batch statement from QB:
PRINT #1, "if "%1"=="bypass" goto end"
Of course, the second quote PRINT sees is interpreted as the end of the string.
Can I get around this?
Thanks a bunch,
Andy
I'm not a programmer, but like to dabble in QuickBasic, and am currently stumped!
I'd like to write a string of data to a sequential (readable, ASCII)
file that contains quotes in it. Specifically, I am assembling an MS-DOS
batch statement from QB:
PRINT #1, "if "%1"=="bypass" goto end"
Of course, the second quote PRINT sees is interpreted as the end of the string.
Can I get around this?
Thanks a bunch,
Andy