Modify

Opened 17 years ago

Closed 17 years ago

#679 closed Bug (Fixed)

FileReadLine function only read 65534 characters at a time.

Reported by: joon Owned by: J-Paul Mesnage
Milestone: 3.2.13.11 Component: Documentation
Version: 3.2.12.1 Severity: None
Keywords: Cc:

Description

$line = ""
For $i = 1 To 700000
	$line &= "A"
Next
FileWriteLine("test.txt",$line)
; now reading it
$file = FileOpen("test.txt", 128)
While 1
    $line = FileReadLine($file)
    If @error = -1 Then ExitLoop
    ConsoleWrite("Line size: " & StringLen($line) & @LF)
Wend
FileClose($file)

Attachments (0)

Change History (9)

in reply to:  description comment:1 by anonymous, 17 years ago

Replying to joon:

$line = ""
For $i = 1 To 700000
	$line &= "A"
Next
FileWriteLine("test.txt",$line)
; now reading it
$file = FileOpen("test.txt", 128)
While 1
    $line = FileReadLine($file)
    If @error = -1 Then ExitLoop
    ConsoleWrite("Line size: " & StringLen($line) & @LF)
Wend
FileClose($file)

just need notes on helpfile on FileReadLine. I've been using AutoIt for years and never new it had that limit.

comment:2 by J-Paul Mesnage, 17 years ago

You right, if you need greater line use FileRead(filename) with can return the whole file and split it yourself.
I will update the doc.

comment:3 by J-Paul Mesnage, 17 years ago

Milestone: 3.2.13.11
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.13.11

comment:4 by J-Paul Mesnage, 17 years ago

Component: AutoItDocumentation

comment:5 by Valik, 17 years ago

Resolution: Fixed
Status: closedreopened

JP, you documented the wrong value.

comment:6 by TicketCleanup, 17 years ago

Milestone: 3.2.13.11

Automatic ticket cleanup.

comment:7 by Valik, 17 years ago

Severity: NoneBlocking

comment:8 by TicketCleanup, 17 years ago

Severity: BlockingNone

Automatic ticket cleanup.

comment:9 by J-Paul Mesnage, 17 years ago

Milestone: 3.2.13.11
Resolution: Fixed
Status: reopenedclosed

Fixed in version: 3.2.13.11

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.