Dug up Q-Basic code from 1996! Works with QB64 (www.qb64.net) (needed a minor tweak to remove file random access).