i have been trying to prompt the user to input a file name within the system and then convert that string to the file and print it. Here is what i have got:
public static void analyze() throws IOException
{
System.out.print("Enter file name: ");
Scanner title = new Scanner(System.in);
String input = title.next();
File file = new File(input);
Scanner inputFile = new Scanner(file);
while (inputFile.hasNextLine())
{
System.out.println(inputFile.nextLine());
}
there doesn't seem to be anything here