Creating a search and replace program in Java to iterate over files.