Minor variable reordering where needed.
people can blame Joerg if it doesn't work. :)
This one is unique in that it doesn't load the entire file at once, hence you could use it for large files or even whole disks.