只能读,不能写,读可以使用以下语法:
InputStream input = Runtime.getRuntime().getClass().getResourceAsStream("/1.txt")
转载于:https://my.oschina.net/yafey/blog/84899
只能读,不能写,读可以使用以下语法:
InputStream input = Runtime.getRuntime().getClass().getResourceAsStream("/1.txt")
转载于:https://my.oschina.net/yafey/blog/84899