insectoid @ Sat May 31, 2008 2:02 pm wrote:
so if I write back into it that way, it will erase the contents and put in the new stuff? That's what I'm after (Or just replacing...)
In short, yes.
Reason: when you open a file with
| Turing: |
open : filestreamnumber, filename, put |
I believe it opens the file with a clean slate (blank file). the key is the "put" at the end of the line
so when you output your edited score array, it should serve the purpose.
remember to close the file the first time after you read it.
so Turing doesn't recognize it, but puts it into memory as a new file to write to.