File f = new File("C:/dir/foo.txt"); FileInputStream fs = (FileInputStream)f;
但我得到这个错误:
Cannot cast from File to FileInputStream
fs如何获得f的内容?
FileInputStream fs = new FileInputStream(f);