Hi all I did a program containing text files and now I want to make it on a cd. When I did so an error occured when I ran the program from my cd telling me that access is denied. My program is on currently on my USB. How can I change the path of the files to run on my cd. Here is my main code. Any help would be greatly appreciated. Thx in advance
AVLProcess ap = new AVLProcess();
AVLTree at = ap.ReadInputFile("E:\\Java files txt\\input.txt", "E:\\Java files txt\\output2.txt");
String input = JOptionPane.showInputDialog(null, "Please select a number to search");
Search sr = new Search();
while (input != null) {
try {
Node newNode = sr.search(at.getRoot(), Integer.parseInt(input));
JOptionPane.showMessageDialog(null, "The node you searched for " + input + " is " + newNode.toString());
System.exit(0);
} catch (Exception ex) {
JOptionPane.showMessageDialog(null, "Please enter a valid number to search next time");
System.exit(0);
}
}
