Page tree

Versions Compared

Key

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

Description

Inserts string in file

 


Syntax

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

 


Parameters

sFile (String)

Filename

...

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


Example

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

Scripting Guidelines

 


Related functions

File_AppendToFile File_FindInFile File_GetLineString