I have created a JDBC in Netbeans which loads data into the tables from a text file. When I run the program on a different computer, the file path (I think thats what it is called) will be different.
The text file is on my desktop. This means if I have to run the program from a different computer I would get an error because the file was obviously not found in the same place as on the original computer.
I created a string to load the data into the database, shown below:
String loadData = "load data local infile '/Users/Ricky/Desktop/table_data.txt'" +
"into table T1;";
Could I create a folder in the netbeans project to store the text file? So it could be accessed from any computer with the same path?