efficient reading/writing of complete files
