mIRC Home    About    Download    Register    News    Help

Print Thread
write scripts ! #128792 30/08/05 08:47 AM
Joined: Aug 2005
Posts: 1
K
kenrata Offline OP
Mostly harmless
OP Offline
Mostly harmless
K
Joined: Aug 2005
Posts: 1
How can i write a line specified by a variable to a text file ?
with the command : /write -l5 c:\info.txt line number 5 ; This line will overwrite the 5th line in the file
But when the line is specified by the variable %line (%line = 5)
/write -l%line c:\info.txt line number %line ; this always overwrites the first line
what can i do ? please help me !

Re: write scripts ! #128793 30/08/05 08:50 AM
Joined: Mar 2004
Posts: 457
D
Danthemandoo Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
//write -l $+ %line C:\info.txt
or
//write $+(-l,%line) C:\info.txt

Re: write scripts ! #128794 30/08/05 09:22 AM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
or
//write -l %line C:\info.txt text to write