Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting records

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
could someone kindly help me to delete records in my .dat file. the file contains records containing name, age, address and other 'char' fields. problem is i cant find a code that actually deletes one particular record.
also i have an ammend function, i used fstream's read and write to read a record and then overwrite the fields, however this only worked for int fields! could someone please tell me how an ammend function for char fields would work. thanks, mat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top