Created file methods to work with the given file.