FileReader
classin packageklyn.io
public class FileReader implements TextReader:
Text reader backed by one file.
import klyn.io
try reader = FileReader("README.md"):
print(reader.readLine())
Constructors
| Modifier and Type |
Member |
Description |
| public |
FileReader |
Creates a reader on the given file path. |
| public |
FileReader |
Creates a reader on the given file name. |
Methods
| Modifier and Type |
Member |
Description |
| public |
close |
Closes the reader. |
| public |
readAllText |
Reads all remaining text from the current reader position. |
| public |
readLine |
Reads one logical line from the current reader position. |