how do i get a function to write to a file for me?? im getting the error
error: invalid use of void expression
i want to save my tic tac game board to this file in order to save it.....
am i going the right way about it??
if(save_or_not == 'y'| save_or_not == 'Y')
{
fstream file;
file.open("save1.txt",ios::in|ios::out);
file.write(DrawBoard());
file.close();
}
im gonna thank you guy in advance cos i had a prob before and my god you guys are generous to take time to help out...
thanks from the young beginner!!