fstream file;
file.open("PasswordGenFile.dat",ios::out);
In writing into a .dat file what does the following line mean?
file.write((char *) this, sizeof(PasswordGenerator));
And how can i convert this bit of code if i want to write it into a .txt file?