aspose file tools
The moose likes Beginning Java and the fly likes Reading bin files in java? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Reading bin files in java?" Watch "Reading bin files in java?" New topic
Author

Reading bin files in java?

Tim frank
Greenhorn

Joined: Mar 07, 2006
Posts: 25
Hey does anyone know how i can read the characters or bits of a bin file? i've been trying to use CharBuffer but can't figure it out at all as the API isn't very helpful.
tim
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2341
If you are going to read a binary file, you should use FileInputStream. For efficiency, wrap it in a BufferedInputStream.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Reading bin files in java?
 
Similar Threads
The Unix way to eliminate terrorism
Unable to Change Classpath
WA #1.....word association
Possible suspects ?
Running sh file on solaris