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

Terence Parr parrt at jguru.com
Sun Feb 2 23:14:00 PST 2003


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/ 



More information about the antlr-interest mailing list