in reply to Reading files too slow

Probably buffering and/or cache. On most systems there is on optimum chunk to be read from a disk, usually measured in kb rather than bytes. So, reading 4 bytes will probably read a lot more and that extra data will be held in a cache. With a small file it is quite possible that on the first read the entire file is held in cache or a buffer in memeory, so the second read is very fast.