if (fileScan.hasNext(posPattern)) {
posCB = fileScan.nextInt() + 1;
for (int i = posCB; i > 0; i--) {
String writeByte = fileScan.next();
BufferedWriter out = new BufferedWriter(new FileWriter("E:\\dataReadable.txt"));
out.write(writeByte);
out.close();
}//for
}
Using a for loop, how would I write to the file without clearing the contents, so it just appends to the end of the file?