TextReader.kl¶
Types¶
TextReader (object)¶
バージョン 1.12.0 で追加.
The TextReader is used to read ascii data from files.
参考
/*
** Example: TextReader
*/
require FileIO;
operator entry() {
FilePath path = FilePath('${TEMP}/textWriter.txt').expandEnvVars();
{
TextWriter writer = TextWriter(path.string());
writer.writeLine("Fabric");
writer.writeLine("Engine");
writer.writeLine("FileIO");
writer.writeLine("Extension");
report('Ascii file written.');
}
if(path.exists())
{
TextReader reader = TextReader(path.string());
report(reader.readLine());
report(reader.readLine());
report(reader.readLine());
report(reader.readLine());
report('Ascii file read.');
}
}
/*
** Output:
Ascii file written.
Fabric
Engine
FileIO
Extension
Ascii file read.
*/
Methods¶
TextReader ( in String filePath ) | |
TextReader ( in TextReader other ) | |
TextReader () | |
TextReader | clone ? () |
Boolean | close ! () |
Boolean | eof ? () |
Boolean | isOpen ? () |
Boolean | open ! ( in String filePath ) |
UInt64 | pos ? () |
String | readAll ! () |
String | readLine ! () |
seek ! ( in UInt64 pos ) | |
UInt64 | size ? () |
~TextReader () |