Jump to content
UBot Underground

How Can I Remove A Single Line From A Text File?


Recommended Posts

Their is a free plugin that you can break down a file into lines

 

why not just as you are doing it

ui open file("File",#file)
define removeLine(#path, #Line Number To Remove) {
    comment("remember Lines Start from 1 not zero")
    add list to list(%lines,$list from text($read file(#path),$new line),"Don\'t Delete","Local")
    remove from list(%lines,$subtract(#Line Number To Remove,1))
    save to file(#path,%lines)
}
removeLine(#file, 1)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...