﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2225	_FileWriteToLine Bug	MemphiZ@…		"I found a bug in the _FileWriteToLine function of the File.au3 include file.

If you run the following code and create and new *.txt file it will run just fine. But if you put some text to the last line instead of having an empty last line it will stop working:


{{{
#include<File.au3>

$fileLocation = @DesktopDir & ""\whatever.txt""
$lineCount = _FileCountLines($fileLocation)

$lineCount += 1
_FileWriteToLine($fileLocation, $lineCount, ""Script started at: "" & @HOUR & "":"" & @MIN & "":"" & @SEC, 1)
$lineCount += 1

$var = 0
While 1
	Sleep(30000)
	$var += 0.5
	_FileWriteToLine($fileLocation, $lineCount, $var, 1)
WEnd
}}}


I narrowed the error down to this line in the File.au3 include file:

{{{
If UBound($aSplit_File) < $iLine Then Return SetError(1, 0, 0)
}}}

Hope this helps!"	Bug	closed		Standard UDFs	3.3.8.1	None	No Bug		
