Difference between revisions of "API:TextWriter"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "{{Namespace:KSP.IO}} {{Class |name=TextWriter |summary=Identical to System.IO.TextWriter, but with added IDisposable methods (for use in using() statements), and a factory met...")
(No difference)

Revision as of 03:23, 18 May 2012

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

TextWriter Class

Identical to System.IO.TextWriter, but with added IDisposable methods (for use in using() statements), and a factory method instead of constructors.

Methods

The following are methods included in TextWriter.

Signature Description
void Close() ?
static TextWriter CreateForType<T>(string filename, Vessel flight = null) Create a TextWriter instance for the desired filename.
void Dispose() Close() the TextWriter
void Flush() ?
void Write(bool value) ?
void Write(char value) ?
void Write(char[] buffer) ?
void Write(decimal value) ?
void Write(double value) ?
void Write(int value) ?
void Write(long value) ?
void Write(object value) ?
void Write(float value) ?
void Write(string value) ?
void Write(uint value) ?
void Write(ulong value) ?
void Write(string format, object arg0) ?
void Write(string format, params object[] arg) ?
void Write(char[] buffer, int index, int count) ?
void Write(string format, object arg0, object arg1) ?
void Write(string format, object arg0, object arg1, object arg2) ?
void WriteLine() ?
void WriteLine(bool value) ?
void WriteLine(char value) ?
void WriteLine(char[] buffer) ?
void WriteLine(decimal value) ?
void WriteLine(double value) ?
void WriteLine(int value) ?
void WriteLine(long value) ?
void WriteLine(object value) ?
void WriteLine(float value) ?
void WriteLine(string value) ?
void WriteLine(uint value) ?
void WriteLine(ulong value) ?
void WriteLine(string format, object arg0) ?
void WriteLine(string format, params object[] arg) ?
void WriteLine(char[] buffer, int index, int count) ?
void WriteLine(string format, object arg0, object arg1) ?
void WriteLine(string format, object arg0, object arg1, object arg2) ?