I am currently accessing data from a file on my hard drive to populate a combo box:
BufferedReader br =
new BufferedReader{new FileReader (new File ("C:\\Program Files\\Java_Test\\Test_Data\\File.dat")));
While ((line = br.readLine()) != null{
cboText.addItem(line.substring(3, 3+12));
}
I would like to put the File.dat in a JAR with the rest of my program, but am having problems accessing the file from within the JAR. Could someone please help me access/read the file from with in a JAR called Test.JAR.
Thanks...Ronnie
BufferedReader br =
new BufferedReader{new FileReader (new File ("C:\\Program Files\\Java_Test\\Test_Data\\File.dat")));
While ((line = br.readLine()) != null{
cboText.addItem(line.substring(3, 3+12));
}
I would like to put the File.dat in a JAR with the rest of my program, but am having problems accessing the file from within the JAR. Could someone please help me access/read the file from with in a JAR called Test.JAR.
Thanks...Ronnie