Readable file io

Vinicius Fernando Arcaro (vfa@turing.unicamp.br)
Tue, 30 Jul 1996 16:14:53 -0200

Dear Oberon/F user:

I am trying (again) to use Oberon/F. However, I need a little help with
file input and output. Using any file type, could you please code the
following:

1) Open a file for reading.
2) Read a real number from the file.
3) Close the file, releasing system resources.

4) Open a file for writing.
5) Write a real number to the file.
6) Close the file, releasing system resources.

I already know how to solve this problem for an ASCII file. However, I
am not happy with the solution, because it is too complex. I am wondering if
a simpler solution exists with another file type. The only constraint on the
file type is that it needs to be readable by a human, that is, you can
exclude binary file.

Thank you,
Prof. Vinicius Fernando Arcaro