REXX Tips & Tricks, Version 2.80

Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs

Reserved names for files in REXX programs

Use a period after the filename to access files with the names STDOUT, 
STDIN or STDERR in REXX programs. Another method to distinguish the 
filenames from the keywords for the standard handles is using the 
filenames with a path. 
For example use 


        /* using a period after the name */
  call directory( "C:\TEMP" )
  curLine = LineIn( "STDOUT." )

        /* using a fully qualified path  */
  curLine = LineIn( "C:\TEMP\STDOUT" )

        /* using a relative path         */
  call directory( "C:\TEMP" )
  curLine = LineIn( ".\STDOUT" )

to read the next line from the file C:\TEMP\STDOUT. 
(see also Reserved directory & file names and Output & Input control)   

Inf-HTML End Run - Successful