mIRC Home    About    Download    Register    News    Help

Print Thread
#128792 30/08/05 08:47 AM
K
kenrata
kenrata
K
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
D
Danthemandoo
Danthemandoo
D
//write -l $+ %line C:\info.txt
or
//write $+(-l,%line) C:\info.txt

#128794 30/08/05 09:22 AM
K
Kelder
Kelder
K
or
//write -l %line C:\info.txt text to write


Link Copied to Clipboard