• Post Reply Bookmark Topic Watch Topic
  • New Topic

File Issues  RSS feed

 
venkat warlu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

Generally if we have a folder and we can view the recently modified files with the help of details and arrane by modified in windows.

I want to write a piece of code to view the same , in my case the number of files is too many. So i need to write the modified files in a excel sheet . How do i start it off. i.e, i need to name the folder and on running the program i should have a excel file which will have all the files modified within the period of time i select like between two dates.

Please help me.

Thanks in advance
Venkat
 
Peter Lawrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would suggest using File.listFiles() to get all the Files in a directory and write the matching entries to a CSV file.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!