Hi Everyone,
It would be helpful if someone helps me on this.
Requirement:
I have a directory which includes different types of files(for example *.java,*.class),but not restricted for only these types. I need to find the same types of file extensions from its directories and subdirectories and also i need to write the file names in to another file.
Output for the requirement:
File1:
--------
path/x1.java
path/x2.java
File2:
---------
path/x1.class
path/x2.class
File3:
----------
path/y1.jsp
path/y2.jsp
Note: path should be where the file is located.
Thanks in Advance