InsertLine() works as advertised. However, you should read the function header beforehand as it specifically states
Quote:


; Remarks: InsertLine does not automatically append a <Carriage Return>, so if you want to write a
; <Carriage Return>, you should add it to the string (as in : $LineToWrite + @CRLF).




You omitted the @CRLF at the end of your strings to be inserted.
_________________________
There are two types of vessels, submarines and targets.