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

Doubt regarding FileInputStream

 
archu sweet
Ranch Hand
Posts: 66
Android Chrome Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




when i ran this code i got No such file found, Doing finally, -1 as output...

All I need to know is FileInputStream creates a new file then how come no such file found is printed???
 
Rob Spoor
Sheriff
Pie
Posts: 20388
46
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) KeepItDown. No need for all uppercase sentences like that.
2) It's FileOutputStream that creates a new file if it doesn't exist yet. FileInputStream throws an exception.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic