DataFile
Assembly: uMod.Core.dll
Inheritance Object DataFile
Implements IDataFile, IDataObject
Summary
Represents a data file
Properties
Name | Summary |
|---|---|
Exists | Determines if file exists |
Extension | Gets the file extension |
Filename | Gets the filename |
IsConfigFile | Gets whether or not file is a watched configuration file |
IsLoaded | |
OnCreateObject | Create object event |
OnRead | Read event |
OnWrite | Write event |
Path | Gets the path |
Methods
Name | Summary |
|---|---|
Delete () | Delete file |
FromString ( | Deserialize data content from specified string |
Load () | Load file synchronously (not recommended) |
LoadFile () | Load data file asynchronously |
Save () | Save file synchronously (not recommended) |
SaveFile () | Save data file asynchronously |
ToAttachment ( | Converts data file to attachment |
Static Methods
Name | Summary |
|---|---|
Loads data from the specified file synchronously (not recommended) | |
Loads data from the specified file asynchronously | |