K
Ken Kafieh
This code is trying to create a file with the following content: aXXXb
But it doesn't. It just stops writing the file after it writes 'a' to it.
any hints?
File outputFile = new File(tmpfile);
RandomAccessFile out = new RandomAccessFile(outputFile,"rw");
out.write('a');
out.writeChars("XXX");
out.write('b');
out.close();
But it doesn't. It just stops writing the file after it writes 'a' to it.
any hints?
File outputFile = new File(tmpfile);
RandomAccessFile out = new RandomAccessFile(outputFile,"rw");
out.write('a');
out.writeChars("XXX");
out.write('b');
out.close();