how to get InputStream from a file with absolute path?
807607Oct 12 2006 — edited Oct 12 2006Hi, guys:
If I have file with a absolute path that may be inside/outside
my Eclipse plugin, I want to get an InputStream from it. It just keeps giving me null for "is":
String absFilePath = "/D:/my_dir/.../sample_file.txt";
InputStream is = getClass().getResourceAsStream(absFilePath);
regards,