Difference between revisions of "API:IOUtils"

From Kerbal Space Program Wiki
Jump to: navigation, search
Line 3: Line 3:
 
{{Class
 
{{Class
 
|name=IOUtils
 
|name=IOUtils
|summary=summary goes here
+
|summary=Has some useful little tools and utilities.
 
}}
 
}}
 
{{MethodsStart}}
 
{{MethodsStart}}

Revision as of 06:38, 23 August 2012

KSP.IO Namespace
BinaryReader · BinaryWriter · File · FileInfo · FileStream · IOException · IOTools · IOUtils · MemoryStream · PluginConfigNode · PluginConfiguration · TextReader · TextWriter

IOUtils Class

Has some useful little tools and utilities.

Methods

The following are methods included in IOUtils.

Signature Description
static object DeserializeFromBinary(byte[] input) Deserialize a binary serialized object
static byte[] SerializeToBinary(object something) Serialize an object (same as using a BinaryFormatter).
static string GetFilePathFor(Type T, string file, Vessel flight = null) Return the full path for a given filename, provided a class from the plugin. PluginData/[.flights/FLIGHT_UUID/]assemblyname/file