为什么我的raf.dat创建出来是文件夹呢
public class RafDemo {
/**
* @param args
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
File demo=new File("demo");
if(!demo.exists()){
demo.mkdir();
}
File file=new File(demo,"raf.dat");
if(!file.exists()){
file.mkdir();
}
RandomAccessFile raf = new RandomAccessFile(file, "rw");
System.out.println(raf.getFilePointer());
}
}