2011年4月18日星期一

fstream

open file and read.
  fstream file("emp.bin",ios::in|ios::binary);

  file.read((char*)&E, sizeof(Employee));

  file.seekg(-((ios::pos_type)(sizeof(Employee)*2)), ios::cur);

没有评论:

发表评论