Please note that while you may generate HTML by compiling this sample, the output will not look as you would expect when viewed in a browser).

View the source under notepad or other text editor. This sample only demonstrates what is possible, it would complicate the sample to take care of these sorts of issues. I have use some html tagging purely to make it MOSTLY readable.

Of course PERL or any other languages code could just as easily have been used for the purpose of this demonstation.


VbScript Output Loaded using #include
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Line1 Line2 Line3

Assuming you actually are generating html and not rexx or some other text file format, using the "#include" command as above assumes that the data output by the script was in a "HTML" compatible format (and/or contains ppwizard commands), very rare in general. The output would normally at least need to go between HTML "PRE" tags and less than and greater signs etc taken care of.

If it was intended for a browser then you should use "HTMLPRE.IH" as it will do exactly what you need.

VbScript Output Loaded into a variable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2nd Line: "Line2"
VARIABLE: "Line1{CR}{LF}Line2{CR}{LF}Line3{CR}{LF}"

VbScript Output Loaded into an ARRAY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LINE 1: Line1
LINE 2: Line2
LINE 3: Line3