File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes getting a file name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "getting a file name" Watch "getting a file name" New topic

getting a file name

Chris Fetterley
Ranch Hand

Joined: May 13, 2003
Posts: 51
I was wondering how to get a file name?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Any file name? Or are you looking for a particular one? Do you have a reference to it? Or are you scanning a directory? Are you doing this from a Servlet context, or is this an Applet or an application?

"JavaRanch, where the deer and the Certified play" - David O'Meara
Chris Fetterley
Ranch Hand

Joined: May 13, 2003
Posts: 51
I need to read each file individually to see the content and change some info within. there are many different files so I needed to set up a way to just read until the end of the directory. not really concerned on the latter details because the search (for the most part anyways.... ) is done. I'm just concerned with being able to read the files.
I agree. Here's the link:
subject: getting a file name
It's not a secret anymore!