Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Peter Norton Programmer's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Function 14H (decimal 20) reads records sequentially from a file. To use
  this function, open a file using function 0FH. Then initialize the
  current-record and record-size fields of the FCB. For example, to read the
  first 256-byte record from a file, set the record-size field to 100H
  (decimal 256) and the current-record field to 00H before you call function
  14H.

  After the FCB is initialized, you can call function 14H once for each
  record you want to read. Each time you call function 14H, pass the address
  of the file's FCB in DS:DX. DOS reads the next record from the file and
  stores the data in the current disk transfer area (DTA). At the same time,
  DOS tracks its current position in the file by updating the current-block
  and current-record fields in the FCB.

  AL reports the results of the read. Complete success is signaled when AL =
  00H; AL = 01H signals an end-of-file, indicating that no data was read; AL
  = 02H signals that data could have been read, but wasn't, because
  insufficient memory remained in the DTA segment; AL = 03H signals an
  end-of-file with a partial record read (the record is padded with zero
  bytes).

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson