Skip to content

Instantly share code, notes, and snippets.

@vinipsmaker
Created October 4, 2013 19:12
Show Gist options
  • Save vinipsmaker/6831123 to your computer and use it in GitHub Desktop.
Save vinipsmaker/6831123 to your computer and use it in GitHub Desktop.
void f(const char *filename)
{
vector<int> array(/* ... */);
fstream file(filename);
if (!file.is_open())
return;
// Use resources
/* .. */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment