Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <iostream>
- using namespace std;
- int parse()
- {
- ifstream file("text.txt");
- if (!file.is_open()) {
- cout << "File not found." << endl;
- return 1;
- } else {
- ...
- }
- file.close();
- return 0;
- {
- int main()
- {
- parse();
- cout << "The program is executed correctly." << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement