Output the strings inside of multiple .txt files in a directory
<p>I have a folder which file name is: "List of names". Inside that folder i have a 5 ".txt" file documents and each document file names is a person's name.</p>

<p>I want to retrieve the five documents and display the strings inside each documents. How do i do this? I tried this:</p>

<pre><code>import java.io.*;
import java.util.*;

public class Liarliar {
    public static void main(String args[])throws IOException{

        File Galileo = new File("C:\\List of names\\Galileo.txt");
        File Leonardo = new File("C:\\List of names\\Leonardo.txt");
        File Rafael = new File("C:\\List of names\\Rafael.txt");
        File Donatello = new File("C:\\List of names\\Donatello.txt");
        File Michael = new File("C:\\List of names\\Michael.txt");
        FileInputStream fis = null;
        BufferedInputStream bis = null;
        DataInputStream dis = null;

        try{
            System.out.println("Enter a number list of names:");
            Scanner scanner = new Scanner(System.in);
            int input = scanner.nextInt();

        }catch(FileNotFoundException e){
        }catch(IOException e){
        }
    }
}
</code></pre>

<p>Thanks in advance for someones time...</p>
