The path to the file to update.
The function to update the file. Takes the current source string as a parameter and should return a string.
The default string to use if the file cannot be read.
The encoding to use when reading and writing the file.
Generated using TypeDoc
Updates a text file based on a provided update function. The update function takes the file's current source string as a parameter and should return a string. If the file does not exist or cannot be read, the defaultContent will be used instead.