 | ResourceManagerReadBytes Method (ResourceFolder, String, Boolean) |
Read the contents of a file in binary-mode.
Namespace:
Kit
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntaxpublic static byte[] ReadBytes(
ResourceFolder folder,
string file,
bool modded = true
)
Request Example
View SourceParameters
- folder
- Type: KitResourceFolder
The folder to read the file from. - file
- Type: SystemString
The path and file-name relative to the folder. - modded (Optional)
- Type: SystemBoolean
Whether to allow mods to provide their version of the file instead. Has no effect if MODDING is not defined.
Return Value
Type:
ByteContents of the file as a byte array.
See Also