Versions Compared

Key

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

...

Searches file for specified text-string and replace it with a new string

 


Syntax

File_ReplaceInFile(sFile, sSearchString, sReplacementString, bOnlyFirstOccurence, bIgnoreCase) As Boolean 


Parameters

sFile (String)

Source-file

...

bIgnoreCase (Boolean)

Ignore case

...


Example

Code Block
languagevb
themeEclipselanguagevb
titleVBScript
If bStatus Then bStatus = File_ReplaceInFile("C:\CapaInstaller.txt", "1999", "2000", False, True)

Scripting Guidelines 


Related functions

File_AppendToFile File_FindInFile File_GetLineString File_InsertInFile