• Post Reply Bookmark Topic Watch Topic
  • New Topic

Read a file character by character using FilterInputStream

 
Ghazala Islam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I just want to read a file character by character using FilterInputStream and replace all ! marks with ".". I tried to do it using DataInputStream but not working.Would anyone write the code to do this?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BufferedInputStream might be more suitable than DataInputStream.

And no, people here are not going to write the code for you, but they'll be happy to help with your code - just post what you have so far.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!