Modify ↓
Opened 16 years ago
Closed 15 years ago
#682 closed Feature Request (Completed)
Remove 64K line limit for FileReadLine()
Reported by: | PsaltyDS | Owned by: | Jon |
---|---|---|---|
Milestone: | 3.3.3.1 | Component: | AutoIt |
Version: | Severity: | None | |
Keywords: | Cc: |
Description
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.
Demo:
Global $sFile = "test.txt", $hFile, $n Global $sLine = "012345467890" FileDelete($sFile) ; Create large line Do $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 FileWriteLine($hFile,$sLine) Next FileClose($hFile) ; Test with FileReadLine() $n = 1 While 1 $sLine = FileReadLine($sFile, $n) If @error Then ExitLoop ConsoleWrite("Line " & $n & " length = " & StringLen($sLine) & @LF) $n += 1 WEnd
Attachments (0)
Change History (3)
comment:1 Changed 16 years ago by TicketCleanup
- Version 3.2.13.10 deleted
comment:2 Changed 16 years ago by Jpm
- Owner set to Valik
- Status changed from new to assigned
comment:3 Changed 15 years ago by Jon
- Milestone set to 3.3.3.1
- Owner changed from Valik to Jon
- Resolution set to Completed
- Status changed from assigned to closed
Added by revision [5514] in version: 3.3.3.1
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.
Note: See
TracTickets for help on using
tickets.
Automatic ticket cleanup.