hello guys
I have a file on a jar file; it's 1.txt for example
how can I call it ; my source code is :
Double result=0.0;
try {
File file = new File("1.txt")); //how get this file from a jar file
BufferedReader input =
new BufferedReader(new FileReader(file));
String line;
while ((line = input.readLine()) != null) {
if(me==Integer.parseInt(line.split(":")[0])){
result= parseDouble(line.split(":")[1]);
}
}
input.close();
}
catch(Exception e){
e.printStackTrace();
}
return result;
thanks ...