Deleting a line from a text file

Discuss RoboTask here
Post Reply
stevefromdodge
Posts: 30
Joined: Tue Apr 05, 2011 3:39 pm

Deleting a line from a text file

Post by stevefromdodge »

I have a script that's using "Search for files" to create a file listing called FileList.txt.I would like to scan FileList.txt and delete all of the lines that start with a certain string.Ideas?
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Deleting a line from a text file

Post by Oleg »

You should rewrite all text in the loop and miss certain lines
See this example, please
Rukbunker
Posts: 192
Joined: Mon Feb 22, 2016 4:06 pm
Location: Netherlands

Re: Deleting a line from a text file

Post by Rukbunker »

Previous link was dead, Correct link
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Deleting a line from a text file

Post by Oleg »

Corrected, thank you.
When we transferred information from old forum engine some information may be lost
Oleg Yershov
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Deleting a line from a text file

Post by Oleg »

You can find all published examples here: http://robotask.com/samples/
Oleg Yershov
Post Reply