SaveFile Method
- Last UpdatedNov 06, 2025
- 1 minute read
Function to save data to a specified file, overwriting the file if it already exists This override saves text data to the file Throw an exception if any error occurs (eg dir does not exist)
| Overload | Description |
|---|---|
| SaveFile(String,String) | Function to save data to a specified file, overwriting the file if it already exists This override saves text data to the file Throw an exception if any error occurs (eg dir does not exist) |
| SaveFile(String,Byte[]) | Function to save data to a specified file, overwriting the file if it already exists This override saves binary data to the file Return a FileInfo object in case it is needed for further processing Throw an exception if any error occurs (eg dir does not exist) - the public calling function must catch it |