structure with Binary file
example I have a struct call student with two members id and name.
struct student
{
int id;
string name;
}
and I assign the data to the struct
student st;
st.id=23;
st.name="Joo";
my question is I want to write this data to the Binary file(like the traditional once in C/C++)
who can help me?