It works for me. If I put some values (in example one int, 2 floats, 3 doubles), I can recover them without problem (Doing a seekg before calling the get function).
But I have a problem. I want to access to 'mybuffer' data and I discover that after some 'put' commands I keep having zeros in all the 265536 positions.
for (int x=0;x<265536;x++) { if (mybuffer[x]!=0) .... )
I dont understand what is happening. Where is my data? Why does my buffer seems to be empty? Thanks