aspose file tools*
The moose likes I/O and Streams and the fly likes FileReader vs FileInputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "FileReader vs FileInputStream" Watch "FileReader vs FileInputStream" New topic
Author

FileReader vs FileInputStream

jeevanandam palani
Greenhorn

Joined: Dec 16, 2009
Posts: 5
which is efficient to use FileReader or FileInputStream
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
Welcome to JavaRanch.

It's not a question of efficiency, it's a question of functionality. Streams work with binary data, while Readers (and Writers) work with character data. If binary data can be converted to character data (and not all binary data can), then you'll need to consider the encoding that was used to convert the character data to binary data in the first place.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FileReader vs FileInputStream
 
Similar Threads
Question in i/o concepts
FileReader vs FileInputStream
close and reopen the bufferedreader
how to read .ini file from java code
String Tokenizer or Regex