Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Detecting 0x00 (null) in a file

807569Aug 10 2006 — edited Aug 10 2006
Hello everybody!

I have some files with 0x00 characters in it, and I need to detect these chars, them I need to trade them by an space char... Using String (reading the file as text), line by line, doesn't works, I think that when it finds a 0x00 it interprets it as the end of line character and them jump to next line, so I can`t find it to do the substitution...
In fact I don`t need to alter the file, just read all the lines from it into an ArrayList, and them substitute the 0x00 chars in it, not in the file (I`ll send these lines to the printer).

What would be the best approch?!

Thanks!

C�ssio
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2006
Added on Aug 10 2006
7 comments
566 views