Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
@OpenFile Macro
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Include:   DOS.INC
 
  Syntax:    @OpenFile path, access [,segment]
 
  Summary:   Opens a file for input or output
 
  Arguments: <path>        ASCIIZ string of file. Must be an offset
                           address.
 
             <access>      File access code. Must be a constant. The
                           default value is 0 (normal read/write file).
 
             <segment>     Segment of address string; DS if not given.
 
  Returns:   If carry: set, error code in AX
 
  Modifies:  AX, DX; DS if segment changed
 
  See also:  Int 21h Function 3Dh, @MakeFile
                                    -♦-