Difference between revisions of "API:TextReader"
From Kerbal Space Program Wiki
m (N3X15 moved page TextReader to API:TextReader) |
|
(No difference)
|
Revision as of 20:40, 5 October 2012
KSP.IO Namespace
BinaryReader ·
BinaryWriter ·
File ·
FileInfo ·
FileStream ·
IOException ·
IOTools ·
IOUtils ·
MemoryStream ·
PluginConfigNode ·
PluginConfiguration ·
TextReader ·
TextWriter
TextReader Class
Identical to System.IO.TextReader, but with added IDisposable methods (for use in using() statements), and a factory method instead of constructors.
Methods
The following are methods included in TextReader.
Signature | Description |
---|---|
void Close() | |
static TextReader CreateForType<T>(string filename, Vessel flight = null) | Create a TextReader instance for the desired filename. |
void Dispose() | Close the TextReader. |
int Peek() | |
int Read() | |
int Read(char[] buffer, int index, int count) | |
int ReadBlock(char[] buffer, int index, int count) | |
string ReadLine() | |
string ReadToEnd() |