Results 1 to 3 of 3
- 08-30-2009, 10:26 AM #1
Member
- Join Date
- Aug 2009
- Posts
- 14
- Rep Power
- 0
- 08-30-2009, 11:04 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
You can use the File class for this. An instance of File can represent the folder you are listing, and there are methods for obtaining the file names as strings.
As far as creating the text file is concerned, do you know how to write text to a file? If not you should consult Sun's Tutorial.
Post code and question if you get stuck.
- 09-04-2009, 06:57 PM #3
Member
- Join Date
- Aug 2009
- Posts
- 14
- Rep Power
- 0
Similar Threads
-
How to get all filenames of certain file types in a folder?
By Mippzon in forum New To JavaReplies: 5Last Post: 01-27-2010, 09:14 PM -
Copy a file to a folder.
By leric in forum New To JavaReplies: 7Last Post: 07-29-2009, 05:11 AM -
folder/file menu items
By jhughes in forum Advanced JavaReplies: 2Last Post: 07-21-2009, 10:57 PM -
Can we Add lib folder insdie Project JAR file ?
By mahendra.athneria in forum AWT / SwingReplies: 1Last Post: 01-30-2009, 05:51 PM -
how to access shared file/folder in LAN
By ksheetiz in forum NetworkingReplies: 1Last Post: 05-24-2008, 04:54 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks