This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes accessing or listing files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "accessing or listing files" Watch "accessing or listing files" New topic
Author

accessing or listing files

Rick Jones
Greenhorn

Joined: Jul 06, 2005
Posts: 6
Hi, I'm trying to create a small utility that will :

1. Create a list of filenames <including subdirectories>

2. Create "process" that runs evryday that will scan the directory for changes compared to the list created in '1.'

3. Report changes

If anyone could help me out with how to get started on this, I would appreciate it.

Thanks!
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Hi Rick,

Welcome to JavaRanch!

Well, java.io.File has several different listXXX() methods that will list the files in a directory. You could start there.


[Jess in Action][AskingGoodQuestions]
Rick Jones
Greenhorn

Joined: Jul 06, 2005
Posts: 6
Okay, I've got them listed. Any clue on how to start number 2 in the first post?

Thanks
 
 
subject: accessing or listing files