Link to the tutorial:
http://www.itcuties.com/java/how-to-w...
In this tutorial we are going to show you how to write string replace java application. This simple application is processing directories tree recursively and finds files with a given extension. For each file that has appropriate extension a processing is done -- we find strings and replace it with other strings. String replace definition is held in a separate file and loaded at the beginning of the program.
It this string replace java application we are going to demonstrate following mechanisms:
Reading program agruments
Reading and writing files in java
Coping file bytes from one to another in java
Recursive files and directories processing in java
Using Map interface in java