#include <WinAPI.au3>
$text = FileReadLastChars("C:\Program Files\AutoIt3\Include\Array.au3", 1024)
MsgBox(0, 'FileReadLastChars', $text)
Func FileReadLastChars($sFile, $nChars)
Local $nBytes
$tBuffer = DLLStructCreate("char["&$nChars&"]")
$hFile = _WinAPI_CreateFile($sFile, 2, 2) ; open for read
_WinAPI_SetFilePointer($hFile, -1 * $nChars, 2) ; from end
_WinAPI_ReadFile($hFile, DLLStructGetPtr($tBuffer),