I am trying to write out data and read it back in on ideone.com. I could not figure it out:
ofstream os ("data.dat", ios::binary);
did not work, when I try to read back in with
ifstream is("data.dat", ios::binary);
the size of the data read is 0.
Is there a different syntax at online compilers, such as ideone.com?