Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- using namespace std;
- int main(){
- setlocale(LC_ALL, "rus");
- char mass[10000];
- ifstream fin("text.txt");
- if (!fin.is_open()) {
- cout << "Файл не может быть открыт!\n";
- }
- else{
- while (!fin.eof()) {
- fin >> mass;
- cout << mass << endl;
- }
- fin.close();
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement