02 23 2026 - rtji0/Arthur-Tech-Journal GitHub Wiki

bunnyfarm

File IO

  • cin.ignore clears stream

  • midterm soon

  • ALWAYS USE BRACES in loops even if one line

  • accumulators

  • sentinels - statement made specifically to kill program

  • iosteam (input-output)

  • Input - ifstream input; input.open("file.name", file::mode | file::mode);

  • Output - ofstream output; output.open("file.name");

  • shorthand ifstream input("file.name"); - def and open in one statement

  • close files after using, start a new steam for each file