Odd.

I tested it prior to posting.

Test 1 on an empty file:

/writeline test.txt 20 line 20
--> wrote line 20 on line number 20, no skipped lines

Test 2: put numbers 1-20 in the file then:

/writeline test.txt 20 line 20
/writeline test.txt 5 line 5
/writeline test.txt 6 line 6
/writeline test.txt 7 line 7

Result:

1
2
3
4
line 5
line 6
line 7
8
9
10
11
12
13
14
15
16
17
18
19
line 20

Test 3 : empty file

/writeline test.txt 10 line 10
/writeline test.txt 5 line 5
/writeline test.txt 15 line 15

All were written on the appropriate lines.

By any chance, was the first line in your test.txt a space? Like perhaps there was a space as first line that you didn't notice? Because if i put a space as the first line, then indeed I get what you are getting. Delete test.txt and try again.

If that isn't the issue, I'll look into it, or someone else who feels like it.

Greets

EDIT: Remember, if you specify a line number lower or equal to the current number of lines, my code uses the built in /write -l command. Btw this code is meant for mIRC 6.16, because of the $v2 identifier.

Last edited by FiberOPtics; 21/11/04 11:18 AM.

Gone.