mIRC Home    About    Download    Register    News    Help

Print Thread
Deleting a line from a text file #29772 14/06/03 02:32 PM
Joined: May 2003
Posts: 4
D
darkfunkel Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: May 2003
Posts: 4
I am making a memo system for people to leave me a message in my channel, I can make it add a memo, read a memo by a number !read 1 would read line one but I don't know how to make !delete 1 so it would delete the first line and !delete 2 to delete line two. Any help would be appreciated

Re: Deleting a line from a text file #29773 14/06/03 02:34 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
on level:TEXT:!delete*:#:{
var %i $2
/write -dl yourtext.txt %i
}

Last edited by pheonix; 14/06/03 02:36 PM.

new username: tidy_trax
Re: Deleting a line from a text file #29774 14/06/03 02:34 PM
Joined: Apr 2003
Posts: 300
A
andymps Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
never mind that
did it worng i did

Last edited by andymps; 14/06/03 02:40 PM.

Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
Re: Deleting a line from a text file #29775 14/06/03 03:09 PM
Joined: May 2003
Posts: 4
D
darkfunkel Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: May 2003
Posts: 4
sorted that /write -dl helped ty but simplified ty cool

Last edited by darkfunkel; 14/06/03 03:17 PM.