> rewind(Calculatorfile);
Well this seems fairly inexplicable, if you're wanting to read the whole file, and not just the first line.