Parsing file using filename given in parameter.