How to read formatted data from a file (with example)?

In reply to Satyaa:

There is only $ungetc. You would have to push back one character at a time from the lime.

I’ve got to believe there is a better way of structuring your code so you don’t have to undo file I/O operations.