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())| Modifier and Type | Member | Description |
|---|---|---|
| public | readAllTextreadAllText() as String throws IOException |
Reads the remaining text. |
| public | readLinereadLine() as String throws IOException |
Reads one line from the current reader position. |
| public | readLinesreadLines() as ArrayList<String> throws IOException |
Reads all remaining lines from the current reader position. |