qc.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.
_fsopen
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _fsopen function opens the file specified by <filename> as a
     stream and prepares the file for subsequent shared reading or
     writing, as defined by the <mode> and <shflag> arguments.
 
     The character string <mode> specifies the type of access requested
     for the file.
 
     The valid types are "r" (read), "w" (write), and "a" (append).
     Any of these can be followed by a "+", which allows both read and
     write operations. The translation mode for newlines can be
     specified by adding a "t" (text) or a "b" (binary).
 
     See also the individual constants for access type and translation
     mode.
 
     See: BINMODE.OBJ
 
     The <shflag> argument is a constant expression consisting of one
     of the following manifest constants (defined in SHARE.H):
 
     SH_COMPAT     SH_DENYRW
     SH_DENYNO     SH_DENYWR
     SH_DENYRD
 
     If SHARE.COM (or SHARE.EXE for some versions of DOS) is not
     installed, DOS ignores the sharing mode. (See your system
     documentation for detailed information about sharing modes.)
 
     The _fsopen function should be used only in OS/2 and DOS versions
     3.0 and later. In earlier versions of DOS, the <shflag> argument
     is ignored.
 
     Return Value
 
     The _fsopen function returns a pointer to the stream. A NULL-
     pointer value indicates an error.
                                    -♦-