Thread View: comp.lang.java.api
1 messages
1 total messages
Started by Lars �ke Thornblad
Fri, 18 Aug 2000 00:00
FileWriter bug?
Author: Lars �ke Thornblad
Date: Fri, 18 Aug 2000 00:00
Date: Fri, 18 Aug 2000 00:00
13 lines
1288 bytes
1288 bytes
Hi! From a FileWriter object I try to write some strings to file ending with a new line. Instead of getting a new line I get something like a bold vertical bar? It does not seemes to be any problem if I have started the FileWriter with the 'FileWriter(String fileName)' constructor. I use the 'FileWriter(String fileName, boolean append)' constructor where I have the problem! Is this some known problem and how can I come around it? I have tried both to write the new line as "\n" and '\n' but with the same result. A strange thing is that I had the same problem in another program for first then it suddenly started work, after just trying to alter between "\n" and '\n' several times!?
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads