Skip to content

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);

View source

Parameters

Name Type Description
filename String The path to the file to read.

Returns

IOFile

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);

View source

Parameters

Name Type Description
filename String The filename used to determine the file format.
stream Stream The stream to read from.

Returns

IOFile

The file read from the stream.