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 logical line without its trailing newline.
Methods inherited from AutoClosable: close