I forgot to mention that I also had to convert my filenames to c-
strings for the fstream constructors.
e.g.
------------------------------------------------------
string filename;
.
<fancy filename code>
.
ifstream inFile(filename.c_str());
------------------------------------------------------
-Justin