Opened 15 years ago

Closed 14 years ago

#682 closed Feature Request (Completed)

Remove 64K line limit for FileReadLine()

Reported by: PsaltyDS Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


Ref documentation change in BugTrac #681.

FileReadLine() uses a 64K buffer and returns each 64K portion of a longer line as a separate line. Request change to assemble complete line before returning, or in the alternative, return a flag in @error or @extended that indicates the entire line was not returned.


Global $sFile = "test.txt", $hFile, $n
Global $sLine = "012345467890"

; Create large line
    $sLine &= $sLine
Until Stringlen($sLine) > 2^16
ConsoleWrite("Actual line length = " & StringLen($sLine) & @LF)

; Open file
$hFile = FileOpen($sFile, 2) ; Overwrite
For $n = 1 To 10
	; Write 10 lines

; Test with FileReadLine()
$n = 1 
While 1
	$sLine = FileReadLine($sFile, $n)
	If @error Then ExitLoop
	ConsoleWrite("Line " & $n & " length = " & StringLen($sLine) & @LF)
	$n += 1

Attachments (0)

Change History (3)

comment:1 Changed 15 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:2 Changed 15 years ago by Jpm

  • Owner set to Valik
  • Status changed from new to assigned

comment:3 Changed 14 years ago by Jon

  • Milestone set to
  • Owner changed from Valik to Jon
  • Resolution set to Completed
  • Status changed from assigned to closed

Added by revision [5514] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jon.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.