I/O¶ Read file lines¶ 1 2 3 4 5 6 7#include <fstream> std::ifstream file("file"); std::string line; while (std::getline(file, line)) { // ... }