File_DeleteLineInFile

Description

Deletes line in specified file


Syntax

File_DeleteLineInFile(sFile, sSearchString, bOnlyFirstOccurrence, bIgnoreCase) As Boolean


Parameters

sFile (String)

Filename

sSearchString (String)

String to be searched for

bOnlyFirstOccurrence (Boolean)

Delete only first occurrence

bIgnoreCase (Boolean)

Ignore case


Example

VBScript
If bStatus Then bStatus = File_DeleteLineInFile("C:\CapaInstaller.txt", "CapaInstaller", True, True)

Scripting Guidelines


Related functions

File_AppendToFile File_FindInFile File_InsertInFile