• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 107
  • Last Modified:

File I\O

How can I delete one line from a sequential file please?
1 Solution
You have to read until you get to the line you want to delete, copying to a 2nd file as you go. When you get to the one line, skip saving it and then copy the balance of the file.

Not particularly elegant or fast, but is only way.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now