| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Text file type
Source position: textrec.inc line 37
| type TextRec = record | ||
| Handle: THandle; | 
 | Low-level OS file handle | 
| Mode: LongInt; | 
 | Open mode | 
| bufsize: SizeInt; | 
 | Actual buffer size | 
| _private: SizeInt; | 
 | Private data | 
| bufpos: SizeInt; | 
 | Current buffer position | 
| bufend: SizeInt; | 
 | Current buffer end position | 
| bufptr: ; | 
 | Pointer to current buffer | 
| openfunc: CodePointer; | 
 | File open function | 
| inoutfunc: CodePointer; | 
 | File I/O function | 
| flushfunc: CodePointer; | 
 | I/O flush function | 
| closefunc: CodePointer; | 
 | File close function | 
| UserData: array [1..32] of Byte; | 
 | User data | 
| name: array [0..textrecnamelength-1] of TFileTextRecChar; | 
 | File name | 
| LineEnd: TLineEndStr; | 
 | Line ending to use | 
| buffer: TextBuf; | 
 | Default buffer | 
| end; | 
TextRec is the underlying type used in text files. It should be treated as opaque and never manipulated directly.
| 
 | Untyped file type | |
| 
 | Assign a name to a file | |
| 
 | Open file for reading | |
| 
 | Close a file | |
| 
 | Open file for writing |