qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
TextBuf and TextRec
  ◄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.