mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 16:54:25 +00:00
10 lines
319 B
Text
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"))
|
|
}
|