I must do read a file
the code is simple:
$filename = "D:\ter\TE.txt"
$timer = TimerInit()
$SuperMegaGigaFile = FileRead($filename)
MsgBox(0,"",Round(TimerDiff($timer)/1000))
The problem?
The file size of the file is: 460m
text file
Posted 28 November 2008 - 11:00 AM
Posted 28 November 2008 - 11:13 AM
whats help ?
Posted 28 November 2008 - 01:41 PM
Posted 28 November 2008 - 01:46 PM
whats help ?
Posted 28 November 2008 - 02:49 PM
Posted 28 November 2008 - 04:12 PM
Posted 28 November 2008 - 05:35 PM
Posted 28 April 2012 - 08:25 PM
; "Error allocating memory." ; MAX_BINARYSIZE 2,147,483,647 Maximum bytes of binary data. ; MAX_STRINGLEN 2,147,483,647 Maximum string length. $Path = "D:TmpFile.tmp" $Size = 200*1024*1024 ; 200 Mb If FileExists($Path) Then FileDelete($Path) RunWait(@Comspec&' /C fsutil file createnew "' & $Path & '" ' & $size, '', @SW_HIDE) If FileExists($Path) Then _Open($Path) Func _Open($Path) $file = FileOpen($Path, 0) $text = FileRead($file) FileClose($file) MsgBox(0, Round(FileGetSize($Path)/1024/1024, 2)&' Mb', 'Yes') EndFunc
0 members, 0 guests, 0 anonymous users