Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <iostream>
- int main() {
- using namespace std;
- // Input File Stream
- ifstream fin("paperella.txt");
- ofstream fout("anatra.txt");
- if(fin.is_open()) {
- cout << "File trovato" << endl;
- } else {
- cout << "File non trovato" << endl;
- }
- string a = "";
- fin >> a;
- fout << "Anatroccolo zucculello!" << endl << "Cammello di dio";
- cout << "A: " << a << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement