about summary refs log tree commit diff stats
path: root/examples/file_io.f
blob: b9cce38f118833fd34c3a91ab978b61e0361dc9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/ Example file IO using syscalls /

/ Open a file read only with open  syscall /
0 H" input.txt"  

/ Read one byte with read  syscall /
↑ 1 H  

/ Close file with close  syscall /