TextReader
interfacein packageklyn.io
public interface TextReader extends AutoClosable:
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 |
Reads the remaining text. |
| public |
readLine |
Reads one logical line without its trailing newline. |