[Toc][Index]

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.   

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs