老大,流是不能直接输出到屏幕上的!!!你试试下面的语句
public class test { public test() { }
public static void main(String[] args) {
java.io.InputStream in = null;
test test1 = new test();
in = test.class.getResourceAsStream("test.properties");
String qq = new String();
while(( qq = in.readLine) != null)
System.out.println(qq);
}
}
public class test { public test() { }
public static void main(String[] args) {
java.io.InputStream in = null;
test test1 = new test();
in = test.class.getResourceAsStream("test.properties");
String qq = new String();
while(( qq = in.readLine) != null)
System.out.println(qq);
}
}
不好意思,想当然了,多谢各位指教
改用BufferedReader了