Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Read a line in a file

 


Syntax

File_GetLineString(sFile, iLineNumber, bMustExist) As Boolean 


Parameters

sFile (String)

Filename

...

Result will be stored in gsValue 


Example

Code Block
languagevb
themeEclipselanguagevb
titleVBScript
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