char ch[255]; ifstream file("in.txt"); file.getline(ch, sizeof(ch)); cout << ch; file.close();
in.txt
:
sdfsdfsf sd fd dsfsdf dsfsd
Compiled successfully, but displays nothing.
char ch[255]; ifstream file("in.txt"); file.getline(ch, sizeof(ch)); cout << ch; file.close();
in.txt
:
sdfsdfsf sd fd dsfsdf dsfsd
Compiled successfully, but displays nothing.
Source: https://ru.stackoverflow.com/questions/236137/
All Articles