Hy all,
I create a small project that dealls with some student data structure. Now I want this program to read the data from a file and write it to another.
I think that using <fstream> library is the most easy way. But I also have in my program the ostream operator overloaded and I don't really succeeded to make them work togheter.
This is what I tried:
Code:
#include <iostream.h>
#include <fstream>
#include <string>
using std::ifstream;
using std::string;
using std::getline;
Is silly but I'm in a hurry. This does not work because the "cout" is not overloaded to write a string line ...
Any ideea will be greatly apreciated.
Thank you!