Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Read a file character by character using FilterInputStream  RSS feed

 
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: 42972
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!