class hello {
public static void main(String[] args) throws IOException {
RandomAccessFile raf = new RandomAccessFile("yyy.txt", "rw");
raf.seek(10);
raf.write(98);
raf.close();
}
运行结果:
class hello {
public static void main(String[] args) throws IOException {
RandomAccessFile raf = new RandomAccessFile("yyy.txt", "rw");
raf.seek(10);
raf.write(98);
raf.close();
}
运行结果: