+ 1
You need to use getline() to retrieve the complete string. The normal >> operator call only gets data till a space or a newline character. Thus, replace : fin>>msg; with : fin.getline(msg,255);
20th May 2018, 4:49 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar