/
File_GetLinesInFile
File_GetLinesInFile
Description
Read number of lines in file
Syntax
File_GetLinesInFile(sFile) As Boolean
Parameters
sFile (String)
Filename
Return value
Number of lines will be stored in giValue and each line will be stored in gaValue
Example
VBScript
If bStatus Then bStatus = File_GetLinesInFile("C:\CapaInstaller.txt") If bStatus Then bStatus = Job_WriteLog("Custom", "giValue: " & giValue, bStatus, True) For index = 0 To UBound(gaValue) If bStatus Then bStatus = Job_WriteLog("Custom","Line #" & index + 1 & " contains: '" & gaValue(index) & "'", bStatus, True) Next End If
Related functions
, multiple selections available,
Related content
$cs.File_DeleteLineInFile
$cs.File_DeleteLineInFile
More like this
$cs.File_AppendToFile
$cs.File_AppendToFile
More like this
File_WaitForFileToExist
File_WaitForFileToExist
More like this
File_WaitWhileExist
File_WaitWhileExist
More like this
Log_RegisterLogfile
Log_RegisterLogfile
More like this
Sys_GetSerialNumber
Sys_GetSerialNumber
More like this