Hi guys,
I have searched for ages about an error in my c++ code. I am having loads of trouble with using the 'getline()' function with ifstream. There are many forum posts on this topic, none of which have helped me solve this problem.
Anyway, Here's my code. Oh and BTW this is a very short console program that reads a line from a file and writes it to another file (.txt files only).