◄Dos Unit► ◄Contents► ◄Index► ◄Back► TYPE { record for text files } TextBuf = ARRAY[0..127] OF Char; TextRec = RECORD Handle : Word; { DOS file handle } Mode : Word; { access mode (FMxxx constants) } BufSize : Word; { buffer size } Private : Word; { reserved } BufPos : Word; { current buffer position } BufEnd : Word; { end of buffer position } BufPtr : ^TextBuf; OpenFunc : POINTER; InOutFunc : POINTER; FlushFunc : POINTER; CloseFunc : POINTER; UserData : ARRAY[1..16] OF Byte; Name : ARRAY[0..79] OF Char; { full name of file } Buffer : TextBuf; { default buffer } END; Unit: Dos Description The TextRec type makes available the internal definition of a file of type Text. To examine the fields for a particular file, typecast the file variable associated with the file to the type TextRec. The Name field is a null-terminated string. To examine Name, assign it to a variable of type CSTRING.