Fork me on GitHub

Changeset 18 in svn for trunk/src/LHEFConverter.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/LHEFConverter.cc

    r2 r18  
    9797      infile >> filename;
    9898      if(!infile.good()) break;
     99        ifstream checking_the_file(filename.c_str());
     100        if(!checking_the_file.good()) { cout << filename << ": file not found\n"; continue;}
     101        else checking_the_file.close();
    99102
    100103      // Create the Reader object:
Note: See TracChangeset for help on using the changeset viewer.