[SOLVED] Writing to a file
I am trying to write to a file and I don't really know what I'm doing wrong here. If someone could point me in the right direction that would be great.
It is supposed to write each field of the array to the File foo, one at a time. Each needs to be on its own line (perhaps BufferedWriter.write() moves the cursor to the next line, but I doubt it, hence the "\n"). Can anyone explain why this isn't working?
BufferedWriter writer = new BufferedWriter (new FileWriter(foo));
for (int count = 0; count <= (listArray.length - 1); count++)
It is really starting to annoy me because I'm pretty sure I'm doing something stupid here and I don't know what it is.