Controller Hang whenever execute both functions(Parsing File and Writing File)

ok thnx for your suggestion.