Just Asking...

I was just wondering. I'm just going to start my program, so don't ask first for codes. I have a little problem regarding the topic about "Input/Output with Files". My problem is that, I couldn't use properly the getline function. Even the given code in the topic has errors. Please help me. I'm using Borland C++ 5.02.
That code is fine. The problem is almost certainly that you are using a 14 year old compiler that does not recognise modern (standard compliant) C++.

You can get a modern compiler for free. Look at the list under the section "What you can do if you're using Dev-C++":

http://www.cplusplus.com/articles/36vU7k9E/
Topic archived. No new replies allowed.