Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (157 - 159 of 3856)

Ticket Resolution Summary Owner Reporter
#1411 Rejected FileReadLine enhancement to enable more efficient reading of very large files. Bowmore
Description

I would like to suggest a possible enhancement to the FileReadLine() function to improve the speed of processing very large text file (> 500MB, millions of rows) which are too large for autoIT to load into memory in one chunk using FileRead() or _FileReadToArrary(). What I would like is an extra optional parameter for FileReadLine("filehandle/filename"[,line[,NumLines=1]]) so that it would be possible to read a file for example in 50000 line chunks with each call to FileReadLine() rather than having to call FileReadLine() for every line in the file.

Example of how I envisage it would be used:

$sFile = "C:\data\very large file.txt"
$hFile = FileOpen($sFile, 0)
$iStartLine = 1
$iNumLines = 50000
$sData = FileReadLine($hFile, $iStartLine, $iNumLines)
While Not @error
  $aData = StringSplit($sData, @CRLF, 1)
  ; ...
  ; Process $aData
  ; ...
  $iStartLine += $iNumLines
  $sData = FileReadLine($hFile, $iStartLine, $iNumLines)
Wend
FileClose($hFile)
#1442 Completed _FileWriteLog to allow allow file handle or filename as first parameter guinness Bowmore
Description

Where an application is writing to a log file frequently, the opening and closing of the log file for each entry can slow the application. It would speed things up it _FileWriteLog() could accept a file handle or a file name as the first parameter, similar to the way _FileWriteFromArray() does.

#2224 Completed _FileReadToArray() Add optional parameter to disable row count return in element [0] guinness Bowmore
Description

Would it be possible to add an optional parameter to this UDF function sometime to optionally disable the return of the row count in element zero. I use ubound() to determine the size of arrays in my scripts and all the arrays I create start with data in element zero. It would avoid the need to have to move all the data up one index or remember to +/- 1 to the index value when comparing data from an array created by FileReadToArray() and an array that has data in element zero.

Note: See TracQuery for help on using queries.