/write command - 21/11/04 02:15 PM
since this was not changed from old 6.0x versions (and maybe even before that) i give new request
since mirc can only write lines into filled .txt files i personally think that it would be far much better to add code so mirc can write lines to an EMTPY .txt file
and i think on this:
//write -l10 test.txt line ten
if file is empty then mirc will write this on 1st line not on 10th line
same goes for //write -il10 test.txt line ten
maybe this is not some MAJOR thing but some users could find it useful...
FiberOptics made this code that can come handy for those who needs things like this:
alias writeline {
if $2 <= $lines($1) { write -l $+ $2 $1 $$3- }
else { write $1 $str($lf,$calc($2 - $v2 - 1)) $+ $$3- }
}
Usage: /writeline <file> <line nr.> <data>
Copyright (C) FiberOptics 2004
since mirc can only write lines into filled .txt files i personally think that it would be far much better to add code so mirc can write lines to an EMTPY .txt file
and i think on this:
//write -l10 test.txt line ten
if file is empty then mirc will write this on 1st line not on 10th line
same goes for //write -il10 test.txt line ten
maybe this is not some MAJOR thing but some users could find it useful...
FiberOptics made this code that can come handy for those who needs things like this:
alias writeline {
if $2 <= $lines($1) { write -l $+ $2 $1 $$3- }
else { write $1 $str($lf,$calc($2 - $v2 - 1)) $+ $$3- }
}
Usage: /writeline <file> <line nr.> <data>
Copyright (C) FiberOptics 2004