fixed stupid mistake sizeof(Filepos) -> sizeof(File)