Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Read a line in a file

 

Syntax

File_GetLineString(sFile, iLineNumber, bMustExist) As Boolean

 

Parameters

sFile (String)

Filename

iLineNumber (String)

Line number

bMustExist (Boolean)

Line must exist


Return value

Result will be stored in gsValue

 

Example

VBScript
If bStatus Then bStatus = File_GetLineString("C:\CapaInstaller.txt", 1, True)
bStatus = Job_Writelog("Custom", "First line in win.ini: " & gsValue, bStatus, True)

Scripting Guidelines

 

Related functions

File_AppendToFile File_FindInFile File_InsertInFile

  • No labels