mIRC Home    About    Download    Register    News    Help

Print Thread
#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 !

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

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


Link Copied to Clipboard