Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在写一个 RandomAccessFile。当我尝试执行raf.writeBytes("")文本文件时,它会忽略这个空文件并将其从文件中删除。有没有办法让文本文件保存这个空字符?
raf.writeBytes("")
试试这个,写一个空的char字节数据。
raf.writeByte(0);