I just can't figure out why this program isn't reading in the entire file. It will only read in the second line, nothing else.
Here are my read and write functions:
bool Write(string Text,string FileName){
fstream Write;
Write.open(FileName.c_str(),ios::out|ios::app);
if(!Write){
cout<<"Error in opening file";
return 0;
}
Write<