Article View: comp.sys.ibm.pc.programmer
Article #12Opening files using DOS services
From: Shaul Wallach
Date: Tue, 28 Jul 1992 20:46
Date: Tue, 28 Jul 1992 20:46
13 lines
1010 bytes
1010 bytes
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?
Thanks very much for any help!
Shaul Wallach <F66204@VM.BIU.AC.IL>
Technical Details
Message-ID:
<92210.214621F66204@BARILVM.BITNET>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!frmop11!barilvm!f66204Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!frmop11!barilvm!f66204 Organization: Bar-Ilan University Computing Center, Israel Date: Tue, 28 Jul 1992 21:46:21 IST From: Shaul Wallach <F66204@BARILVM.BITNET> Message-ID: <92210.214621F66204@BARILVM.BITNET> Newsgroups: comp.sys.ibm.pc.programmer,comp.sys.ibm.pc.misc Subject: Opening files using DOS services Lines: 13