use*_*801 -3 java file random-access
我想知道是否有人这个号码做了什么,我听说它必须用字节做什么?,我真的不知道..有谁可以请赐教:
public int total_reg() {
try {
int reg;
RandomAccessFile file = new RandomAccessFile(Ruta, "rw");
reg = (int) file.length();
file.close();
return (int) reg / 684; //<---HERE WHAT IS THIS
} catch (IOException e) {
return 0;
}
}
Run Code Online (Sandbox Code Playgroud)