One advantage of using our single string dictionary lookup technique is that saving to and reading from a disk file is amazingly simple. Just open the file and write the string.
open "dictionary.dat" for output as #writeDict
print #writeDict, dictionary$
Reading on the other hand requires a slightly more sophisticated technique. For example, if any of the keys or values have return characters in them then we want to make sure we read the whole file all the way to the end. For this we will use the input$() function.
open "dictionary.dat" for input as #readDict
length = lof(#readDict)
dictionary$ = input$(#readDict, length)
The ability to preserve return characters is useful more for the values than for the keys, which for most applications will probably just be short one or two word names.