I get:

Code:

Opening:files.cpp
A LINE
#include <cstdlib>
A LINE
#include <fstream>
A LINE
#include <iostream>
A LINE
A LINE
using namespace std;
A LINE
A LINE
int numThreads;
A LINE
A LINE
int main(int argc,char* argv[])
A LINE
{
A LINE
ifstream in;
A LINE
string line;
A LINE
cout << argv[1] << endl;
A LINE
numThreads = atoi(argv[1]);
A LINE
cout << "Number of threads: " << numThreads << endl;
A LINE
for(int i=2;i<argc;i++)
A LINE
{
A LINE
cout <<"Opening:" << argv[i] << endl;
A LINE
in.open(argv[i]);
A LINE
while(!in.eof())
A LINE
{
A LINE
cout << "A LINE" << endl;
A LINE
getline(in,line);
A LINE
cout << line << endl;
A LINE
}
A LINE
in.close();
A LINE
}
A LINE
return 0;
A LINE
}
A LINE
A LINE

I suppose you could check to make sure (1) you provide all the filenames you claim you do and (2) they can each be opened.