How to read multi-word strings from a file
Posted on 2003-03-28
Plz examin the following code.
cout<<"Enter Code, Name and Salary : ";
This will write 10 employee records on to a file "Employee.txt".
Assume that the employee name is a multi-word string. Then,
how to read it back from that file ?
struct employee e1;
This won't work. The overloaded extraction operator is not
capable of reading multi-word strings from a file.
Plz suggest a solution for this problem.