用java寫(xiě)的讀磁盤(pán)扇區代碼public boolean readSector(String diskSign, byte[]buf, int length)
{
try{
FileInputStream fr = new FileInputStream(diskSign);
BufferedInputStream br = new BufferedInputStream(fr);
br.read(buf, 0, length);
br.close();
fr.close();
}catch(IOException e)
{
System.out.println(e.getMessage());
return false;
}
return true;
}
String diskSign = "[url=]\\\\.\\e[/url]:";