QuantumSlip
Supreme [H]ardness
- Joined
- Feb 4, 2001
- Messages
- 4,979
OK, for some reason I'm trying to write a new line or carriage return to a text file to start a new line, and neither one of them work. I've tried using raf.writeByte and raf.writeChar with \n and \r (ASCII 13, 10 respectively, and raf is of type RandomAccessFile), and it just ends up making a space instead. I tried appending \n to my string, but again it just makes a space. Anyone have any ideas on how to get this to work?
code:
raf.writeChar('\n'); //just makes a space
raf.writeChar('\r'); //just makes a space too
and so on with writeByte and writeBytes; putting it into a String doesn't help either.
code:
raf.writeChar('\n'); //just makes a space
raf.writeChar('\r'); //just makes a space too
and so on with writeByte and writeBytes; putting it into a String doesn't help either.