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]

  Unlike function 22H, function 28H (decimal 40) writes one or more records,
  starting at a specified random file location. DS:DX points to the FCB for
  the file to be written, and the random record number is then taken from
  this FCB. CX contains the number of records desired and in this case, CX
  can be 00H. CX = 00H signals DOS to adjust the file's length to the
  position of the specified random record. This adjustment makes it easier
  for a program to manage random files: If you have logically deleted
  records at the end of a file, this service allows you to truncate the file
  at that point by setting the file's length in CX, thereby freeing disk
  space.

  The return codes are the same as they are for function 22H: AL = 00H
  indicates a successful write; AL = 01H means that no more disk space is
  available; and AL = 02H indicates that the DTA segment was too small. No
  matter what the result, CX is always set to the number of records written.

  Contrast this function with function 22H, which writes only one random
  record.

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