Thursday, July 30, 2009

How can i delete a specific line or update a sequential access file using c++?

is there a predefined function to delete a specific line in an SAF?

How can i delete a specific line or update a sequential access file using c++?
Not without writing out a new file. In other words, read in on one stream and write out on another.





Another technique, if the file isn't too big, is to keep it's contents in memory. THen, if changes were made you'd simply write out the new file.


No comments:

Post a Comment