SaveFile(String,Byte[]) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The SaveFile() method saves data to the specified file. If the file already exists, it will be overwritten. If the file does not already exist, it will be created.
This overload of the method passes the data as a byte array.
'Declaration
Public Overloads Shared Function SaveFile( _
ByVal completeFilePath As String, _
ByVal contents() As Byte _
) As FileInfo
public static FileInfo SaveFile(
string completeFilePath,
byte[] contents
)
Parameters
- completeFilePath
- Required. Holds the complete path to the file to which the data should be written.
- contents
- Required. Holds the data to write to the file.
Return Value
Returns a FileInfo object for the specified file.