Class TextFile (unit ODFileUnit) |
TObject
The TextFile class implements access to files consisting of lines of text. Text files do not support seeking, and have limited open and sharing modes (see above).
Constructors |
------------------------------------------------------------------------------ TextFile methods.
Functions |
Get file name (may be empty
Once again, open is mostly about mapping modes
write line to text file, terminating with CR/LF pair
Properties |
Events |
Variables |
Constructors |
text file buffer
------------------------------------------------------------------------------ TextFile methods. Most work is done by the RawFile and TFBuffer classes. ------------------------------------------------------------------------------ Constructor creates the rawfile & buffer object
Functions |
Close file. Always safe to call, even on already closed files.
Close file
destroy rawfile & buffer
accessors for RawFile properties
Get file name (may be empty
Get open state
Open a text file
Once again, open is mostly about mapping modes
Read a line from file, stripping CR/LF pair. Returns False if at end of file.
Read line, trimming CR/LF.
Write a line of text to file & terminate with CR/LF pair
write line to text file, terminating with CR/LF pair
Properties |
Events |
Variables |
implemented via RawFile