Skip to content

File_InsertInFile

Inserts string in file

File_InsertInFile(sFile, sSearchString, sInsertString, bOnlyFirstOccurence, bIgnoreCase, sMode) As Boolean

Filename

Pre-string to find

String to insert before or after pre-string

Insert by first occurrence (TRUE or FALSE)

Ignore case (TRUE or FALSE)

Insert-mode. sMode can be one of following values: ‘TOP’, ‘BOTTOM’, ‘BEFORE’, ‘AFTER’

If bStatus Then bStatus = File_InsertInFile(gsWindowsDir & "\WIN.BAK", "", gsWindowsDir & "\WIN.BAK was created " & Now, True, True, "TOP")

Scripting Guidelines

File_AppendToFile File_FindInFile File_GetLineString Constants Package Property Variables