Factor file_name and file_content into methods
Also refactor indents to use 2 spaces not 4