CS 1337 Lecture Notes - Lecture 14: Binary File, Data File, Standard Streams
Document Summary
#include int main(void) { of file file input operations but output operations move position back to end of file. * 3 things to ask when opening file. * r - read: read from file, opens file. * w - write: create empty file for output. * a - append: append, open file for output at end of file, writes data at end. * r+ - read/update: open file for both input and output. * w+ - write/update: create empty file and open for input and output. * a+ - append/update: open file for input and output, write data at end of. * reading from the console it is a file, there are two of them. error output, stderr it is a file stdin - reads from keyboard void pointer - pointer to anything, pointer in memeory and type does not fwrite - fwrite(const void * ptr, size_t size, size_t count, file *