Use this code:
public void lookup(String s) {
int tempc;
InputStream fis;
String temps="";
String path = getCodeBase().getFile()+"ros.txt";
try {
fis = new FileInputStream(path);
while ((tempc=fis.read()) != -1) {
temps = temps+(char)tempc;
}
} catch (Exception e) {
System.out.println(e.getMessage());
return;
}
S