• Post Reply Bookmark Topic Watch Topic
  • New Topic

Searching a file in a directory  RSS feed

 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,

i want to get a file ( of any format ) in a particular

directory. thankz in advance.............
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FileInputStream stream = new FileInputStream("c:\\directory\\filename.foo");

Now you can read the file's contents from "stream".

If you need something else, you're going to have to be a little more specific!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!