// Lists contents of a user-specified file 	
	
import java.util.*;	
import java.io.*;	
	
public class FileLister {	
	
	// main(): application entry point	
	public static void main(String [] args) throws IOException {	
		// set up standard input stream 	
		Scanner stdin = new Scanner(System.in);	
	
		// determine file	
		System.out.print("File: ");	
		String name = stdin.nextLine();	
		File file = new File(name);	
	
		// set up file stream 	
		Scanner fileIn = new Scanner(file);	
	
		// process lines one by one 	
		while (fileIn.hasNext()) {	
			// get next line 	
			String currentLine = fileIn.nextLine();	
	
			// display the line 	
			System.out.println(currentLine);	
		}	
	}	
}	
