Week 12 - Wednesday. CS222. Last time. What did we talk about last time? Binary files Low-level file I/O. Questions?. Project 5 . Quotes. Weeks of programming can save you hours of planning. Anonymous. Files and atomicity.
Weeks of programming can save you hours of planning.
./program > output.txt
./program > output.txt 2>&1
./program 2> errors.log
intfd = dup(1); //makes a copy of stdout
//makes 2 (stderr) a copy of 1 (stdout)
fflush(stdout); //flushes stdout
//could be any FILE*
fflush(NULL); //flushes all buffers