Reading files completed. Now a functionality to write to file and analyze is required.