mIRC Home    About    Download    Register    News    Help

Print Thread
help with removing lines from txt file #166189 07/12/06 02:27 PM
Joined: Sep 2006
Posts: 35
C
chump Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Sep 2006
Posts: 35
hi peeps i was wondering how i go about removing certain lines of txt from a file..like if i have a txt match how i could del it from file or wipe it from file thx

Re: help with removing lines from txt file [Re: chump] #166215 07/12/06 09:43 PM
Joined: Apr 2004
Posts: 218
P
PhantasyX Offline
Fjord artisan
Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
Use $read in and /write -dl switches


Live to Dream & Dream for Life
Re: help with removing lines from txt file [Re: chump] #166219 07/12/06 10:17 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Example code:
Code:
if $read(filename.txt,w,*test*) { write -dl $readn filename.txt }


Invision Support
#Invision on irc.irchighway.net