error C3861: 'getline': identifier not found, even with argument-dependent lookupCode:void ListFileHDD(ifstream& fin) { string line; while (!fin.eof()) { getline(fin,line); } cout<<line; }
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
I have this function it is not working.
I want to know how i can read a file and display it to screen.