Lines Matching full:file
20 <<fopen>>---open a file
29 FILE *fopen(const char *<[file]>, const char *<[mode]>);
31 FILE *fopen(
32 const char *<[file]>, const char *<[mode]>);
36 file. Specify the file's name as the string at <[file]>, and the kind
37 of access you need to the file with the string at <[mode]>.
48 Open the file for reading; the operation will fail if the file does
52 Open the file for writing @emph{from the beginning} of the file:
53 effectively, this always creates a new file. If the file whose name you
57 Open the file for appending data, that is writing from the end of
58 file. When you open a file this way, all data always goes to the
59 current end of file; you cannot change this using <<fseek>>.
66 of the three modes above, to specify that you are opening the file as
67 a binary file (the default is to open the file as a text file).
75 Finally, you might need to both read and write from the same file.
82 an existing file, without discarding any data; <<"w+">> (or <<"wb+">>)
83 to create a new file (or begin by discarding all data from an old one)
85 <<"ab+">>) to permit reading anywhere in an existing file, but writing
89 <<fopen>> returns a file pointer which you can use for other file
90 operations, unless the file you requested could not be opened; in that
115 FILE *
117 const char *__restrict file, in fopen() argument
120 register FILE *fp; in fopen()
129 if ((f = open (file, oflags, 0666)) < 0) in fopen()