up: programming - C - File I/O  
programming - C - function fopenWhat links here?
FILE * fopen ( const char * filename, const char * mode );


"r"read: Open file for input operations. The file must exist.
"w"write: Create an empty file for output operations. If a file with the same name already exists, its contents are discarded and the file is treated as a new empty file.
"a"append: Open file for output at the end of a file. Output operations always write data at the end of the file, expanding it. Repositioning operations (fseek, fsetpos, rewind) are ignored. The file is created if it does not exist.
"r+"read/update: Open a file for update (both for input and output). The file must exist.
"w+"write/update: Create an empty file and open it for update (both for input and output). If a file with the same name already exists its contents are discarded and the file is treated as a new empty file.
"a+"append/update: Open a file for update (both for input and output) with all output operations writing data at the end of the file. Repositioning operations (fseek, fsetpos, rewind) affects the next input operations, but output operations move the position back to the end of file. The file is created if it does not exist.


With the mode specifiers above the file is open as a text file. In order to open a file as a binary file, a "b" character has to be included in the mode string. This additional "b" character can either be appended at the end of the string (thus making the following compound modes: "rb", "wb", "ab", "r+b", "w+b", "a+b") or be inserted between the letter and the "+" sign for the mixed modes ("rb+", "wb+", "ab+").
programming - C - function fopen
programming - algorithms - graph drawing calculating the scaling factors
Time internal format
programming - Pascal
MC6802 - instruction set - Wait For Interrupt
programming - cpp - operator overloading
X Windows Functions - Window XCreateWindow(display, parent, x, y, width, height, border_width, depth, class, visual, valuemask, attributes)
programming - HTML - button
programming - C - function fwrite
programming - C - function isspace
Topical Bible - God's Sovereignty
MC6802 - instruction set - Branch if Overflow Set
microprocessors - microchip 16F84A - porta
programming:microchip pics:16F84A status
programming - C - function fseek
Topical Bible - God's Omnipresence
Topical Bible - End Times
programming - C - function fgets
filename:programming - C - function fopen
filename:programming%20%2D%20C%20%2D%20function%20fopen
last edit:December 18 2012 19:06:04 (4168 days ago)
ct = 1716066738.000000 = May 18 2024 17:12:18
ft = 1355875564.000000 = December 18 2012 19:06:04
dt = 360191174.000000