annika-w
8/22/2017 - 11:19 AM

C/C++ Input, Output, Files

#include <fstream>

std::ifstream ifs(path);  // OR: ifs.open(path);
int val;
while (ifs >> val) {
  // ...
}