Wrote method that reads source code and name of file.