Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream> //You have to include it when working with files!
- using namespace std;
- int main()
- {
- ofstream FelixFile; //Creating an object file!/Acces to a file!
- FelixFile.open("felixfile.txt"); //If file don't exist create this file!
- FelixFile << "Hello world!\n";
- FelixFile.close();
- return 0;
- }
Add Comment
Please, Sign In to add comment