I can not get to a reasonable solution to this problem, I tried to use ifstream, fopen. 
int main() { FILE *fp = NULL; char str[3500]; if ((fp = fopen_s("C:\\Users\\I9609\\source\\repos\\lab5\\eng.txt", "r")) == NULL) { cout << "Error of opening the file! "; exit; } fgets(str, 3500, fp); fclose(fp); _getch(); return 0; }