REXX Tips & Tricks, Version 2.80


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


LineIn() versus CharIn()



Use the function <CHARIN to read a file as often as possible (instead of 
using <LINEIN). For example: 

 
                        /* read a file into a variable                */
  fileContents = CharIn( myFile, 1, chars( myFile ) )

                        /* close the file                       v2.60 */
  call stream myFile, 'c', 'CLOSE'

See Read a file using CharIn() for an example routine to read a file using 
<CHARIN and split it into lines manually.   

Inf-HTML End Run - Successful