Ok so I have a client server program that I wrote in c++. Took me a while! As I am not really an expert.
The problem that I encountered was following:
When I read from a file in to a string it only loads the first line into a string and that that is what is will send.
If need be I can post the whole code but I figured it would be more efficient if I posted the part of the code where the problem is.
Any help any advice is welcomed.
int index = 0;
while (!read.eof()) //Tried using read.good()
cout << str << endl;
cout << "\nEror file is closed\n";