# pktao@uwm.edu / 2006-08-10 08:08:30 -0500:
Im having trouble calling an input file stream from inside a function and was hoping if anyone can help me with a solution. Im compiling with MSVC++ 8.0. Below is a detailed description of the problem:
boost::filesystem::ifstream inputDataStream; //declaration of inputDataStream
void trialOnsetWrite() {
void trialOnsetWrite(boost::filesystem::ifstream &inputDataStream) {
int mobilityIndexMarker = 0; inputDataStream >> mobilityIndexMarker; std::cout << mobilityIndexMarker << std::endl; };
int main() { boost::filesystem::ifstream inputDataStream("/tao/data/pt03-test-1.txt"); trialOnsetWrite();
trialOnsetWrite(inputDataStream);
return (0); };
-- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991