I'm using the code below to write into a text file
String content = "I Love Java";
Files.write(Paths.get(gg), (content + "\n").getBytes(UTF_8),StandardOpenOption.CREATE,StandardOpenOption.APPEND);
After 3 times of run, the text is saved into the the text as :
I Love JavaI Love JavaI Love Java
But, I want the text in the text file looks like:
I Love Java
I Love Java
I Love Java
Any help please ?