Re: writeChars not behaving as expected
From: Roedy Green (look-on_at_mindprod.com.invalid)
Date: 05/19/04
- Next message: Carl Howells: "Re: Java Interview Questions: Am I Being Too Difficult?"
- Previous message: Roedy Green: "Re: Length limit on CLASSPATH setting (JIntegra's regjvmcmd)"
- In reply to: Ken Kafieh: "writeChars not behaving as expected"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 18 May 2004 23:58:51 GMT
On Tue, 18 May 2004 03:03:12 GMT, "Ken Kafieh"
<kkafieh-StopSp@m@rogers.com> wrote or quoted :
> RandomAccessFile out = new RandomAccessFile(outputFile,"rw");
>
> out.write('a');
> out.writeChars("XXX");
> out.write('b');
see http://mindprod.com/jgloss/fileio.
You are probably writing 16 bit chars, where you editor wants 8 bit.
Random access is normally not human-readable.
-- Canadian Mind Products, Roedy Green. Coaching, problem solving, economical contract programming. See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- Next message: Carl Howells: "Re: Java Interview Questions: Am I Being Too Difficult?"
- Previous message: Roedy Green: "Re: Length limit on CLASSPATH setting (JIntegra's regjvmcmd)"
- In reply to: Ken Kafieh: "writeChars not behaving as expected"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|