IStorage
Declaration
public interface Strawberry.Misc.IStorage
The storage manager that handles file storage on different platforms and allows you to read data from a file system.
Methods
Open abstract
Opens a stream to the specified file.
Stream Open(string path)
Parameters:
| Name | Type | Description |
|---|---|---|
path |
System.String |
Path to the file. |
Returns: A stream to the specified file.
ReadAllBytes abstract
Reads all the bytes in the specified file
byte[] ReadAllBytes(string path)
Parameters:
| Name | Type | Description |
|---|---|---|
path |
System.String |
Path to the file. |
Returns: Bytes in the specified file
List abstract
Lists all files in the specified directory.
string[] List(string path)
Parameters:
| Name | Type | Description |
|---|---|---|
path |
System.String |
Path to the directory. |
Returns: An array of files in the specified directory.