Skip to content

Instantly share code, notes, and snippets.

@masazdream
Created February 15, 2014 10:05
Show Gist options
  • Select an option

  • Save masazdream/9017085 to your computer and use it in GitHub Desktop.

Select an option

Save masazdream/9017085 to your computer and use it in GitHub Desktop.
ifstreamでファイルを開くとき用
/**
* open file
*/
void OpenFile(ifstream& file, const char* file_list_path) {
file.open(file_list_path);
if (!file.is_open()) {
throw "can not open file.";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment