void testDelText(){ int result; Person p; strcpy(p.LastName, "taware"); strcpy(p.FirstName, "abhijit"); strcpy(p.Address, "dange"); strcpy(p.City, "pune"); strcpy(p.State, "ma"); strcpy(p.ZipCode, "33"); p.Print(cout); DelimTextBuffer Buff(6); p.Pack(Buff); Buff.Print(cout); ofstream TestOut("deltext.dat", ios::out|ios::binary); Buff.Write(TestOut); TestOut.close(); Person q; ifstream TestIn("deltext.dat", ios::in|ios::binary); DelimTextBuffer InBuff(6); InBuff.Clear(); InBuff.Read(TestIn); InBuff.Print(cout); q.Unpack(InBuff); q.Print(cout); }