Я компилирую и запускаю следующий код
#include
#include
#include
using namespace std;
void displayFile(const string& filename) {
ifstream file(filename);
if (file.is_open()) {
string line;
cout
Подробнее здесь: https://stackoverflow.com/questions/798 ... in-fstream