mIRC Home    About    Download    Register    News    Help

Print Thread
C
chump
chump
C
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

Joined: Apr 2004
Posts: 217
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 217
Use $read in and /write -dl switches

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Example code:
Code:
if $read(filename.txt,w,*test*) { write -dl $readn filename.txt }


Link Copied to Clipboard