Skip to content

Remove existing record in .txt file

Mervha Nifflemhell

Asked Dec 19, 2007, 5:02 AM EST1 answer
Share
LinkedInX

Is there any way I could remove my records from my existing .txt file on my WinApp program?

Here my example record on my .txt file:

1st line: 1234567890

2nd line: qwertyuiop

3rd line: asdfghjkl

if i would like delete the 2nd line, what codes should i use?

after deleting the 2nd line... the 3rd line should be on the 2nd line position...

 

any suggestions?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    If your data is separated with newline characters, then u can delete/modify the at that position by searching for position - 1 line and do your event.
    0