BasicFile

fops.spad line 254 [edit on github]

This is domain for storing and reading Spad values in files.

close! : % -> Void

clos! closes the file.

flush : % -> Void

flush passes all buffered data to the operating system.

open : (FileName, String) -> %

open opens the file.

read : % -> None

read sequentially reads one item from the file.

readIfCan : % -> Union(None, "failed")

readIfCan read one item from the file. otherwise returns "failed"

write! : (%, None) -> Void

write writes one item to the file.