#include #include #include #include using namespace std; int main () { string redak; SetConsoleOutputCP(1250); ifstream test ("sluzbe.dat"); if (test.is_open()) { while (! test.eof() ) { getline (test,redak); char *kar = new char[redak.length() + 1]; strcpy(kar, redak.c_str()); AnsiToOem(kar, kar); cout << kar << endl; } test.close(); } else cout << "Ne mogu otvoriti datoteku"; system ("PAUSE"); return 0; }