求助::读完文件想删除``但失败```
FileInputStream fis = new FileInputStream("test.htm");
FileChannel fc = fis.getChannel();
ByteBuffer bbuf = fc.map(FileChannel.MapMode.READ_ONLY, 0, (int) fc.size());
CharBuffer cbuf = Charset.forName("utf-8").newDecoder().decode(bbuf);
String str = new String(cbuf.array());
//....对str的操作
cbuf.clear();
bbuf.clear();
fc.close();
fis.close();
File f = new File("test.htm");
f.delete(); //------这里返回了false,文件删除不了``
听说是什么共享的问题,自己都搞不掂```
请帮忙~~