Skip to content

Instantly share code, notes, and snippets.

@1c7
Created May 3, 2014 15:00
Show Gist options
  • Save 1c7/15631350e08e80f39772 to your computer and use it in GitHub Desktop.
Save 1c7/15631350e08e80f39772 to your computer and use it in GitHub Desktop.
output_some_thing_to_file-1c7.cpp
#include <fstream>
#include <iostream>
using namespace std;
int main(){
cout << "hahahahahahahah" << endl;
ofstream fout("output.txt");
fout << "nice" << endl;
fout << "good" << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment