home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8171 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.4 KB

  1. Xref: sparky comp.os.msdos.programmer:8171 comp.sys.ibm.pc.misc:11008
  2. Path: sparky!uunet!mcsun!Germany.EU.net!unido!sbsvax!coli-gate.coli.uni-sb.de!sbustd!chbl
  3. From: chbl@sbustd.rz.uni-sb.de (Christian Blum)
  4. Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.misc
  5. Subject: Re: Opening files using DOS services
  6. Message-ID: <1992Jul30.130751.17044@coli.uni-sb.de>
  7. Date: 30 Jul 92 13:07:51 GMT
  8. References: <92210.214621F66204@BARILVM.BITNET>
  9. Sender: news@coli.uni-sb.de (Usenet news system)
  10. Organization: Studenten-Mail, Rechenzentrum Universitaet des Saarlandes
  11. Lines: 17
  12.  
  13. Shaul Wallach <F66204@BARILVM.BITNET> writes:
  14. >      Here is a novice's programming question to which I haven't
  15. > been able to find an answer in the books at hand. When you
  16. > create a disk file using functions AH = 3C or 5B, DOS (i.e.
  17. > INT 21H) returns a file handle in AX. However, these functions
  18. > don't require any file-access code in AL. Can I assume that
  19. > the file will be opened for write access, or must I first
  20. > explicitly open the file with function 3D and a file-access
  21. > code in AL and use the handle this function returns, ignoring
  22. > the handle returned by function 3C or 5B?
  23.  
  24. O dear (:-), of course it is opened for write access! If you tell DOS
  25. that you want to create a file, do you think it's that picky and doesn't
  26. let you write to it?
  27. BTW: have you tried it? That's a good method of getting ahead...
  28.  
  29. Chris
  30.