Fork me on GitHub

Changeset 18 in svn for trunk/src/STDHEPConverter.cc


Ignore:
Timestamp:
Nov 6, 2008, 5:23:12 PM (16 years ago)
Author:
Xavier Rouby
Message:

checks that the input file is present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STDHEPConverter.cc

    r2 r18  
    115115      infile >> filename;
    116116      if(!infile.good()) break;
     117        ifstream checking_the_file(filename.c_str());
     118        if(!checking_the_file.good()) { cout << filename << ": file not found\n"; continue;}
     119        else checking_the_file.close();
    117120     
    118121      ierr = StdHepXdrReadInit(const_cast<char*>(filename.c_str()), &nevt, istr);
Note: See TracChangeset for help on using the changeset viewer.