Originally Posted by CJLopez
It may sound silly, and I may be reviving a pretty old topic, but, try adding a "\n" (a jump line character) at the end of each line. Because the cursor is stuck on the same line it always write on that line... or something like that, I think
New lines aren't the issue here. The issue is that if the file exists and has data in it write, print, and println all start at the beginning of the file. The issue then becomes how, within the FileConnection/OutputDataStream world, can you get to the end of the file? Sure, we could just read the contents of the file into a variable, append to that variable, and then write back to the file, but that's a bit ridiculous.
There has to be some kind of seek() or skip() function that we can use to move the stream pointer to the end of the file. Does anybody know how to do this?