The fact you just said Vista makes me think you probably are $read'ing one file and opening another in notepad. Make sure you're opening the file in $mircdir. If $mircdir is in Program Files it's also possible Vista may redirect $reads to your VirtualStore folder, so check there, too.
You could also make it easier to check by using an absolute path to a file somewhere outside of Program Files.