ZXSpectrumFile.Read Method
Overloads
| Name | Description |
|---|---|
| Read(String) | Reads a ZX Spectrum file from disk, detecting the format from the file extension. |
| Read(String, Stream) | Reads a ZX Spectrum file from a stream, detecting the format from the filename. |
Read(String)
Reads a ZX Spectrum file from disk, detecting the format from the file extension.
public static IOFile Read(string filename);
Parameters
| Name | Type | Description |
|---|---|---|
| filename | String | The path to the file to read. |
Returns
The file read from disk.
Read(String, Stream)
Reads a ZX Spectrum file from a stream, detecting the format from the filename.
public static IOFile Read(string filename, Stream stream);
Parameters
| Name | Type | Description |
|---|---|---|
| filename | String | The filename used to determine the file format. |
| stream | Stream | The stream to read from. |
Returns
The file read from the stream.