Files written with FileWriter are either 32 KB, 24 KB, 16 KB, ... big or empty
- by Bernhard V
Hi,
I read a file into a string, change the first line and then write this string into a new file. I do this through the following code (a little bit shortened):
while(jspIterator.hasNext()){
String line = (String) jspIterator.next();
if (i == 0) {
if (line.startsWith("bla bla")…