parse full file contents into object representation