BayuMalmsteen Posted September 10, 2008 Share Posted September 10, 2008 I want to try to read file, but the error when i try to call fileread($file,$count) when the count is over 99999999 can you solve me? Link to comment Share on other sites More sharing options...
Andreik Posted September 10, 2008 Share Posted September 10, 2008 (edited) I want to try to read file, but the error when i try to call fileread($file,$count) when the count is over 99999999 can you solve me? I created a file with 100000000 characters and then I have read 100000000 characters and FileRead work fine. Be sure that your file have 99999999 characters. This file should be almost 100 Mb. $DATA = "" For $INDEX = 1 To 100000000 $DATA &= "A" Next $FILE = FileOpen(@ScriptDir & "\BigFile.txt",2) FileWrite($FILE,$DATA) FileClose($FILE) $FILE = FileOpen(@ScriptDir & "\BigFile.txt",0) $DATA = FileRead($FILE,100000000) FileClose($FILE) MsgBox(0,"",$DATA) Edited September 10, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now