@Olivеr
412 / 408 / 13
Регистрация: 06.10.2011
Сообщений: 832
|
15.05.2013, 23:49
|
|
а чем так не устраивает?
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| #include <iostream>
#include <fstream>
using namespace std;
int main()
{
fstream file("text.txt", ios::in);
char c;
while (file.good()) {
c = file.get();
cout << c;
}
file.close();
return 0;
} |
|
0
|