C++-ban nehéz fájl olvasni? Egyszerű válasz.... Igen!!!
Forráskód:
#include <iostream>
#include <fstream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
ifstream beolvas("vau.txt");
string egysor;
beolvas>>egysor;
cout<<egysor;
beolvas.close();
return 0;
}
Videó: