Hi im writing to text files in Java using
To print an array of 2000 words.
However it stop as soon as the file size reaches 8KB.
Have you got any ideas how I can fix this? It just stops half way through a word.
Code:
PrintWriter out = new PrintWriter(new FileWriter("file.txt"));
int i = 0;
for (i=0; i < toPrint.length - 1; i++)
{
out.print(toPrint [i] + "\n");
}
To print an array of 2000 words.
However it stop as soon as the file size reaches 8KB.
Have you got any ideas how I can fix this? It just stops half way through a word.
Last edited: