#include<iostream>
#include<fstream>
#include<iomanip>
using namespace std;
class lohi
{
int x;
int y;
public :
lohi()
{
x=10;
y=20;
}
}X;
int main()
{
fstream io;
io.open("just1",ios::in | ios:: out | ios::app);
io.write((char*)&X,sizeof(X));
io.close();
}
in this programme i expect a file to be created and contents of x,y to be in it........
but................................................................................................................
its not at all creating a file ..
brothers please help