Another java.io.FileNotFoundException (The system cannot find the file specified) thread
<p>I've created a basic notepad text file (e.g., text-file.txt) and have tried placing this file in multiple file paths for my code to retrieve, but I can't seem to get this to work. Basically, I'm wanting to take the content of text-file.txt and create a second file where everything is in all caps. </p>

<p>Here is my code:</p>

<pre><code>package abc123;

import java.util.Scanner;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;

public class abc123
{
        public static void main (String [] args) throws IOException
        {
                Scanner in = new Scanner(System.in); 

            System.out.print("Please provide the name of your input file: ");
            String inFileName = in.nextLine();
            System.out.print("Please indicate what you'd like to name your output file: ");
            String outFileName = in.nextLine();

            FileReader reader = new FileReader(inFileName);
            PrintWriter writer = new PrintWriter(outFileName); 
            Scanner fileReader = new Scanner(reader); 

            while(fileReader.hasNext())
            {
                    String line = fileReader.nextLine();
                    line = line.toUpperCase();
                    writer.println(line);
            }

            fileReader.close();
            writer.close();

            System.out.println("The process is now complete. Please check your output file. Thank you.");
        }
}
</code></pre>

<p>I'm a Java newbie, so a simple solution (and comments, as always) that I can grasp at this point would be super helpful. Thanks!</p>