[antlr-interest] why does java write more on the txt files?

sudip mitra s_mitra8 at yahoo.com
Sun Feb 2 23:38:51 PST 2003


WHAT IS HEX DUMP????
 Terence Parr <parrt at jguru.com> wrote:
On Sunday, February 2, 2003, at 06:01 PM, sudip mitra wrote:

> I encountered this problem while I was doing simple file i/o to
>
> extract data from a txt file into another and then replace the "\n"
>
> everywhere ...when i opened this file with wordpad java had additional 
> characters
>
> between the letters :(
>
> so when i tried antlr to do some  smart stuff it did not recognise 
> these characters ...
>
> it was like this :
>
> original file : somebody
>
> new file : s o m e b o d y
>
> that is now there were spaces between the characters in every word...
>
> n e idea for this ????
>

Perhaps some unicode characters are being spit out? Do a hex dump of 
the file to see.

Terence
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Lecturer in Comp. Sci., University of San Francisco




Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20030202/6aeb6acd/attachment.html


More information about the antlr-interest mailing list