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ます。ファイルに書きたいことはすべて書きましたが、ファイルの一連のバイトを文字列として読み取って出力することはできません。誰か助けてくれませんか?
RandomAccessFile
RandomAccessFile rand = ... // Your RandomAccessFile instance. rand.seek(0); for (long i = 0; i < rand.length(); i++) { byte b = rand.readByte(); System.out.print((char)b); }