File searching through java Input : File Name and the directory to which searching Output : List of files Main Class : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 package com . rakesh . codetalk . fileSearch ; import java.io.BufferedReader ; import java.io.File ; import java.io.InputStreamReader ; import java.util.ArrayList ; /** * @author Rakesh KR * @since December 2K14 */ public class FileSearchBO { public static void main ( String argv []) throws Exception { FileSearchDTO fileSearchDTO = new FileSearchDTO (); FileSearchDAO fileSearchDAO = new FileSearchDAO (); BufferedReader br = new BufferedReader ( new InputStreamReader ( System . in )); System . out . println ( "Enter the fileName to be searched : " ); fileSearchDTO . setFileNameToSearch ( br . readLine ()); System . out . println ( "Enter the dir...
Code Talk a blogg for programmers.. !!!