add veeery simple file reading

This commit is contained in:
Sebastian Hugentobler 2025-05-26 13:58:45 +02:00
parent 7340601939
commit e9cca49fc9
Signed by: shu
SSH key fingerprint: SHA256:ppcx6MlixdNZd5EUM1nkHOKoyQYoJwzuQKXM6J/t66M
2 changed files with 129 additions and 8 deletions

6
lox/read_file.lox Normal file
View file

@ -0,0 +1,6 @@
var filepath = "Cargo.toml";
var c = read(filepath);
while (c != nil) {
out(c);
c = read(filepath);
}