QBasic WRITE
Posted: Sun Sep 21, 2003 9:44 pm
I am trying to write multi-character strings to a file, in this case writing an html doc containing the output of my program.
Now, the problem is, html contains " in them, and also < >
The compiler takes these as open quotes for new parts and operators, but I want them to be just part of the same string.
E.g.
WRITE #1, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
The compiler stops due to both the < > and ".
If I place "" around the string, I also get them written to the file aswell.
This also writes
"</table><p></p></body></html>" and not
</table><p></p></body></html>
WriteText$ = "</table><p></p></body></html>"
WRITE #1, WriteText$
Help!
-Stu
Now, the problem is, html contains " in them, and also < >
The compiler takes these as open quotes for new parts and operators, but I want them to be just part of the same string.
E.g.
WRITE #1, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
The compiler stops due to both the < > and ".
If I place "" around the string, I also get them written to the file aswell.
This also writes
"</table><p></p></body></html>" and not
</table><p></p></body></html>
WriteText$ = "</table><p></p></body></html>"
WRITE #1, WriteText$
Help!
-Stu