CS 1337 Lecture Notes - Lecture 14: Binary File, Data File, Standard Streams

13 views3 pages

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 *

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents