Code for a tool that performs operations on plain text files