fopen
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The fopen function opens the file specified by <filename>. 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►
Return Value
The fopen function returns a pointer to the open file. A NULL
pointer value indicates an error.
-♦-