Hi friends, trying to pass an ifstream to a function expecting an ostream...Should this be a problem?
ifstream fleetin;
fleetin.open (filename);
read(fleetin);
//Error....
: cannot convert parameter 1 from 'std::ifstream' to 'std::ostream &'
My parameter is declared as ostream&, or maybe i should just remove the '&', but thought it's a good practice to pass reference params