◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ─────Run-Time Library─────────────────────────────────────────────────────── 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 new lines can be specified by adding a "t" (text) or a "b" (binary). See: ◄BINMODE.OBJ► See also the individual constants for access type and translation mode: ◄Translation Modes► ◄Access Types► 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 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. -♦-