ByteViewer.SaveToFile(String) Method

Definition

Writes the raw data from the data buffer to a file.

public:
 virtual void SaveToFile(System::String ^ path);
public virtual void SaveToFile (string path);
abstract member SaveToFile : string -> unit
override this.SaveToFile : string -> unit
Public Overridable Sub SaveToFile (path As String)

Parameters

path
String

The file path to save to.

Exceptions

path is null.

path is an empty string (""), contains only white space, or contains one or more invalid characters.

The specified path is invalid, such as being on an unmapped drive.

The file write failed.

The specified path, file name, or both exceed the system-defined maximum length.

The access requested is not permitted by the operating system for the specified path, such as when access is Write or ReadWrite and the file or directory is set for read-only access.

Applies to