Simple calculator which takes a text file as input and returns the result.