Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I/O quession

 
Hades Pan
Ranch Hand
Posts: 106
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which one of the following is used to read ascii codes from a file ?
a)FileReader
b)InputStream
c)characteArrayReader
d)InputStreamReader
e)OutputStreamReader
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a. True. From the API
Convenience class for reading character files.

b. False, InputStream is abstract and read bytes
c. False, There is no CharacterArrayReader but CharArrayReader and it does not read from a file but from a char array
d. True, if you chain a FileInputStream with an InputStreamReader you can read character from a file
e. False, there is no OutputStreamReader class
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
Hades Pan
Ranch Hand
Posts: 106
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh thans a lot Valentin
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic