/* checkfstream.cpp - chec if stream was correctely open Copyright (C) 2010 Rui Rodrigues This software is released under the terms of the GNU General Public License (http://www.gnu.org/copyleft/gpl.html). */ #include #include #include #include using namespace std; void checkfstream(ifstream& file_io,const char* filename){ if(!file_io){ cerr<