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

Terence Parr parrt at jguru.com
Mon Feb 3 09:43:12 PST 2003


Well, on unix it's "od file.txt" (well octal dump).  Surely on a PC you 
can find a way to see the real bytes in a file...

Ter

On Sunday, February 2, 2003, at 11:38 PM, sudip mitra wrote:

> 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/
>
>
>
<image.tiff>
>
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
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