Ok i've got my file working for input, but I can't get it to except spaces,
Code:
ofstream outfile("*file name*", ios::out);
outfile << song[arraynumber].artist;
outfile << song[arraynumber].title;
outfile << song[arraynumber].mediafile;
outfile << song[arraynumber].genre;
outfile << song[arraynumber].duration;
outfile.close( );
This works fine but when i open up my text document it would have something like,
AC\DCback in blackmp3rock345
Is there something I can add so that each one starts on a new line so they can be read from the file seperately, like they were stored?