Problem fixed. Here's a sample for those who were going to help...
This line is outside the method of which provides the extension.
Code:
private static String fileExtention = ".txt";
This line provides an understand of what is happening when the file is being opened
Code:
File fileOpen = new File("c:/temp/myfile" + fileExtention);
Java will automatically provide a case insensitive search for the file myfile.txt.
This was my prior mistake
Code:
File fileOpen = new File("c:/temp/myfile.txt");
The only error that will be found is if "myfile" requires a case insensitive search.
In circumstances like that, this may be an option to consider Be sure to place this outside the method.
Code:
private static String fileName = "myfile";
private static String fileExtention = ".txt";
This goes within the method
Code:
File fileOpen = new File("c:/temp/" + fileName + fileExtention);
This is untested, but I'm sure it will work. Thanks for viewing my posts.