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)
comment:1 by , 17 years ago
comment:2 by , 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 , 17 years ago
| Milestone: | → 3.2.13.11 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed in version: 3.2.13.11
comment:4 by , 17 years ago
| Component: | AutoIt → Documentation |
|---|
comment:5 by , 17 years ago
| Resolution: | Fixed |
|---|---|
| Status: | closed → reopened |
JP, you documented the wrong value.
comment:7 by , 17 years ago
| Severity: | None → Blocking |
|---|
comment:9 by , 17 years ago
| Milestone: | → 3.2.13.11 |
|---|---|
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed in version: 3.2.13.11
Note:
See TracTickets
for help on using tickets.

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