No it's not being opened in binary. It's in text mode. Here's how I play with it:
That's pretty harmless isn't it? I mean it works most of the time without a problem! I just don't understand why simple code can go rouge sometimes.
newBook = Book(isbn, author, title, publisher, pPlace, status, year, copy);
obook.write(reinterpret_cast< char * >(&newBook), sizeof(Book));
cout<<"\n\nBook data written successfully.";
cout<<"\n\nCannot open transaction file."<<endl;
As for making sure if it is still good(), to be perfectly honest with you, I was never taught that. What's that?
Thanks again Codeplug.