Writes text to a file using the output stream
The file path to write to
The text content to write
Optional
Text encoding (default: 'utf-8')
Writes text to a file using the output stream