Finch/tests/run/files.fch
Nexoniarz 84cbbb3e16 Windows support (wip): target layer, Microsoft x64 ABI, portable runtime, CI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 20:46:51 +02:00

10 lines
319 B
Text

fn main() {
path := "finch_test_file.txt"
ok := write_file(path, "line one\nline two\n")
print(ok, file_exists(path))
text := read_file(path)
lines := text.trim().split("\n")
print(lines, lines.len)
print(delete_file(path), file_exists(path))
print(file_exists("definitely/not/here"))
}