home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2140 / msdos.doc < prev    next >
Encoding:
Text File  |  1990-12-28  |  2.0 KB  |  39 lines

  1. This package reads and writes files in the root directory of a MS-DOS
  2. format diskette.  Reads from and to files in directorys are not supported,
  3. directorys are ignored.
  4.  
  5. The format is the one used on MS-DOS since version 2.01, ie. media
  6. descriptor bytes are not tested or supported.  Diskettes formatted with
  7. MS-DOS versions 2.01 through 4.01 should all work.  It should also be
  8. possible to use Atari ST -formatted diskettes, if the controller chip
  9. timing supports the different gap lengths of the format.  However, the
  10. TOS on the Atari expects to see the media descriptor byte set to 0xF7
  11. for 720k diskettes; thus, the formatting routine will have to be changed
  12. in this respect.  Diskettes with this media descriptor will unfortunately
  13. get the warning "Probable non-DOS diskette" from the MS-DOS chkdsk program.
  14.  
  15. The following sample programs are supplied: read (read a diskette file
  16. using the routines), write (write a diskette file) and clear (logically
  17. format a MS-DOS diskette).
  18.  
  19. Some guidelines for producing generally MS-DOS compatible diskettes/files
  20. with this package:
  21.  
  22. * filenames are 8 characters, with 3 character file extensions; both parts
  23.   consist of uppercase characters padded from the right with spaces but
  24.   they should NOT contain imbedded spaces; the filename cannot be all blank
  25.   but the extension can be, and a period is assumed between the two parts;
  26.   for example, the on-disk filename "MYFILE  EXT" maps logically to the name
  27.   "MYFILE.EXT" and the logical filename "2ND-FILE" maps to "2ND-FILE   "
  28.  
  29. * do not use lowercase characters or any of the DOS reserved characters
  30.   which are ?*,;.:+"/<=>[\]| in the filenames you create
  31.  
  32. * do not use either of the characters 0x00 (NUL) or 0xE5 as the first character
  33.   of a filename; the first means a never used directory entry, the second a
  34.   deleted one
  35.  
  36. * use only "whole" diskettes, ie. if a diskette is physically or logically
  37.   damaged and you try to write onto it with this package, the results will
  38.   probably be bad (if not worse)
  39.