Modify

Opened 15 years ago

Closed 15 years ago

#679 closed Bug (Fixed)

FileReadLine function only read 65534 characters at a time.

Reported by: joon Owned by: Jpm
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)

comment:1 in reply to: ↑ description Changed 15 years ago by anonymous

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 Changed 15 years ago by Jpm

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 Changed 15 years ago by Jpm

  • Milestone set to 3.2.13.11
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed in version: 3.2.13.11

comment:4 Changed 15 years ago by Jpm

  • Component changed from AutoIt to Documentation

comment:5 Changed 15 years ago by Valik

  • Resolution Fixed deleted
  • Status changed from closed to reopened

JP, you documented the wrong value.

comment:6 Changed 15 years ago by TicketCleanup

  • Milestone 3.2.13.11 deleted

Automatic ticket cleanup.

comment:7 Changed 15 years ago by Valik

  • Severity changed from None to Blocking

comment:8 Changed 15 years ago by TicketCleanup

  • Severity changed from Blocking to None

Automatic ticket cleanup.

comment:9 Changed 15 years ago by Jpm

  • Milestone set to 3.2.13.11
  • Resolution set to Fixed
  • Status changed from reopened to closed

Fixed in version: 3.2.13.11

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

Action
as closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.