I need to write(append) huge string to flat file using java nio. The encoding is ISO-8859-1.
Currently we are writing as shown below. Is there any better
This works for me:
//Creating newBufferedWritter for writing to file BufferedWritter napiš = Files.newBufferedWriter(Paths.get(filePath)); napiš.write(what); //Don't forget for this (flush all what you write to String write): napiš.flush();