Jump to content

Deleting A Line From .txt Files


Silo

Recommended Posts

ok... and the issue with my code is most likely the use of $dname. Seeing as it gets called from a signal, i believe this is the problem. try this...

 

alias -l rem.chan {
  if ($input(Are you sure you want to delete the channel %select.chan from your favourites list?,qcyd,Confirm)) {
    splay clear.wav
    write -dl $+ $calc($did(favourites,2).sel + 1) Engine/Text/favourites.txt
  }
  chan.list
}

Link to comment
Share on other sites

It's not even deleting anything now :P This one is really messing with my head lol I really appreciate your time & effort :)

 

I don't want to remove the MDX since it really jazz's up the look of an otherwise boring dialog :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...