The Bool structure provides some useful functions for I/O with booleans. For example write
print(concat["The flag is ", Bool.toString flag, "\n"])} |
to print out the value of a flag.
The fromString function will do the reverse but it returns a bool option to indicate errors. The scan function is for use with with the more general string scanning system in StringCvt which I will discuss in the section called Text Scanning.