Implement the file method