TextReader
interfacein packageklyn.io
public interface TextReader extends AutoClosable:
└ TextReader

Text reader contract.

A TextReader is not tied to the filesystem. Concrete implementations such as FileReader or SocketReader provide the actual backing resource.

import klyn.io

try reader = FilePath("README.md").openReader():
print(reader.readLine())
Methods
Modifier and Type Member Description
public readAllText
readAllText() as String throws IOException
Reads the remaining text.
public readLine
readLine() as String throws IOException
Reads one line from the current reader position.
public readLines
readLines() as ArrayList<String> throws IOException
Reads all remaining lines from the current reader position.
Methods inherited from AutoClosable: close