Created
September 20, 2018 21:04
-
-
Save kolyadin/680b23e1eec81791265512a6cf2a274f to your computer and use it in GitHub Desktop.
C++ simple create file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
int main() { | |
std::ofstream outfile ("/path/to/dir/test.txt"); | |
outfile << "my text here!" << std::endl; | |
outfile.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment