Kód:
#include "stdafx.h"
#include "stdio.h"
#include <iostream>
#include <fstream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char znak_aktualny[1000];
ifstream subor ("notice.html");
while (!subor.eof())
{
subor.getline(znak_aktualny, 1000);
cout << znak_aktualny;
}
system("pause");
}
alebo
#include "stdafx.h"
#include "stdio.h"
#include <iostream>
#include <fstream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char znak_aktualny;
ifstream subor ("notice.html");
while (!subor.eof())
znak_aktualny = subor.get();
cout << znak_aktualny;
}
system("pause");
}