home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / ibm / pc / programm / 298 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.0 KB

  1. Xref: sparky comp.sys.ibm.pc.programmer:298 comp.sys.ibm.pc.misc:10959
  2. Path: sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!frmop11!barilvm!f66204
  3. Organization: Bar-Ilan University Computing Center, Israel
  4. Date: Tue, 28 Jul 1992 21:46:21 IST
  5. From: Shaul Wallach <F66204@BARILVM.BITNET>
  6. Message-ID: <92210.214621F66204@BARILVM.BITNET>
  7. Newsgroups: comp.sys.ibm.pc.programmer,comp.sys.ibm.pc.misc
  8. Subject: Opening files using DOS services
  9. Lines: 13
  10.  
  11.      Here is a novice's programming question to which I haven't
  12. been able to find an answer in the books at hand. When you
  13. create a disk file using functions AH = 3C or 5B, DOS (i.e.
  14. INT 21H) returns a file handle in AX. However, these functions
  15. don't require any file-access code in AL. Can I assume that
  16. the file will be opened for write access, or must I first
  17. explicitly open the file with function 3D and a file-access
  18. code in AL and use the handle this function returns, ignoring
  19. the handle returned by function 3C or 5B?
  20.  
  21.      Thanks very much for any help!
  22.  
  23. Shaul Wallach  <F66204@VM.BIU.AC.IL>
  24.