private void createBigFile() {
UsbFile dir = adapter.getCurrentDir();
UsbFile file;
try {
file = dir.createFile("big_file_test.txt");
<BUG>file.write(0, ByteBuffer.wrap("START\n".getBytes()));
int i;</BUG>
for (i = 6; i < 9000; i += 5) {
<BUG>file.write(i, ByteBuffer.wrap("TEST\n".getBytes()));
}
file.write(i, ByteBuffer.wrap("END\n".getBytes()));
file.close();</BUG>
adapter.refresh();

private void createBigFile() {
UsbFile dir = adapter.getCurrentDir();
UsbFile file;
try {
file = dir.createFile("big_file_test.txt");
OutputStream outputStream = new BufferedOutputStream(new UsbFileOutputStream(file), 4096);
outputStream.write("START\n".getBytes());
int i;
for (i = 6; i < 9000; i += 5) {
outputStream.write("TEST\n".getBytes());
}
outputStream.write("END\n".getBytes());
file.close();
adapter.refresh();
