Notes on file io