Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

ModIO.IOUtilities

Jackson Wood edited this page Feb 20, 2019 · 1 revision

IOUtilities

static class in ModIO

Static Methods

Name Description
ReadJsonObjectFile<T> Reads an entire file and parses the JSON Object it contains.
TryReadJsonObjectFile<T> Reads an entire file and parses the JSON Object it contains.
WriteJsonObjectFile<T> Writes an object to a file in the JSON Object format.
LoadBinaryFile Loads an entire binary file as a byte array.
TryLoadBinaryFile Loads an entire binary file as a byte array.
WriteBinaryFile Writes an entire binary file.
ReadImageFile Loads the image data from a file into a new Texture.
TryReadImageFile Loads the image data from a file into a new Texture.
WritePNGFile Writes a texture to a PNG file.
DeleteFile Deletes a file.
CreateDirectory Creates a directory.
DeleteDirectory Deletes a directory.
CombinePath Creates a path using System.IO.Path.Combine().
GetFileSize Gets the size (in bytes) of a given file.
CalculateFileMD5Hash Calculates the MD5 Hash for a given file.
GetPathItemName Gets the name of the item (file/folder) at the given path.
Clone this wiki locally