Created
February 2, 2017 07:10
-
-
Save thekvs/4e3b6e00135b63dc22cc3a86a63820b0 to your computer and use it in GitHub Desktop.
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 <fstream> | |
#include <string> | |
int | |
main() | |
{ | |
std::string file = "/tmp/a_file.txt"; | |
std::ofstream dst(file, std::ios::trunc); | |
dst << "Hello, world!" << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment