Normal it sould be

//write -l $+ $mid(12345,3,2) test1.txt this is a test , if you want to write to line 34, of course line 34 must exist else only one line is add to test.txt