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