Skip to content

Instantly share code, notes, and snippets.

@Ddedalus
Created July 3, 2018 09:08
Show Gist options
  • Select an option

  • Save Ddedalus/fdd0f2504097f7a0bac99f6d366d7920 to your computer and use it in GitHub Desktop.

Select an option

Save Ddedalus/fdd0f2504097f7a0bac99f6d366d7920 to your computer and use it in GitHub Desktop.
Reasonable read/write in c++
fstream csvk;
csvk.open("../output/stub_run.csv", fstream::ate | fstream::in | fstream::out);
// consult: https://en.cppreference.com/w/cpp/io/basic_filebuf/open
csvk << "Can write there!; blah blah\n"; csvk.flush();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment