A few file methods.