• Post Reply Bookmark Topic Watch Topic
  • New Topic

Convert InputStream to Reader.  RSS feed

 
Kalpesh Rawal
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to convert inputstream to a reader how can i convert it?

It is urgent,if anybody knows please reply as soon as possible.

Thanks in advance
 
Rob Spoor
Sheriff
Posts: 21094
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
InputStream is = new FileInputStream("somefile.txt");
Reader reader = new InputStreamReader(is);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!