Displaying file content with @line

Aug 16, 2008
124
0
#1
Hi,

I'd like to display the first line of a file with `scrput` and `@line`. Unfortunately the file contains % characters and those are stripped from the output. The documentation says to "Beware of characters with special meaning to TCC [...] Use SETDOS /X with appropriate codes as needed". When I use "setdos /x-3", I can't use '%@line' anymore.

So what can I do to display the "raw" file content?
 
May 29, 2008
529
3
Groton, CT
#2
Hi,

I'd like to display the first line of a file with `scrput` and `@line`. Unfortunately the file contains % characters and those are stripped from the output. The documentation says to "Beware of characters with special meaning to TCC [...] Use SETDOS /X with appropriate codes as needed". When I use "setdos /x-3", I can't use '%@line' anymore.

So what can I do to display the "raw" file content?
Check out the @SAFELINE function in Charles Dye's SAFECHARS plugin at http://prospero.unm.edu/plugins/safechars.html .
 
#3
Hi,

I'd like to display the first line of a file with `scrput` and `@line`. Unfortunately the file contains % characters and those are stripped from the output. The documentation says to "Beware of characters with special meaning to TCC [...] Use SETDOS /X with appropriate codes as needed". When I use "setdos /x-3", I can't use '%@line' anymore.

So what can I do to display the "raw" file content?
How about SETDOS /X-4?
Code:
v:\> echo %@line[avtemp.btm,12]
set host=

v:\> setdos /x-4

v:\> echo %@line[avtemp.btm,12]
set host=%[host%@mrand[1,2]]