aspose file tools
The moose likes Java in General and the fly likes How to read an excel file and create a directory structure Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to read an excel file and create a directory structure" Watch "How to read an excel file and create a directory structure" New topic
Author

How to read an excel file and create a directory structure

Deeb kumar
Greenhorn

Joined: Sep 19, 2007
Posts: 28
Hi Experts,

Please suggest How can I read and excel and create a recursive folder structure in my system automatically using java. Suppose I have a list of folder structures present in the column named FOLDER STRUCTURE in my excel sheet like C://folder1 ,C://folder2, C://folder1//folder2//folder3 ,C://folder4 and so on. It has got some 100 entries say

How can I read the excel and create the folder structure in the recursive form. Kindly suggest for any ideas or reference links which will be helpful.

Thanks and Regards,
D
Prabaharan Gopalan
Ranch Hand

Joined: Oct 16, 2009
Posts: 66

There are two parts to this problem:
1. Read the value from Excel (for which you might want to look up ODBC and how it's done).
2. Create the directory from what you've read (traditionally java.io and if you're curious, java.nio).

Let us know when you attempted these and whether these worked.


Googling doesn't make you a genius. But not Googling makes you dumber.
Sachin Joshi
Ranch Hand

Joined: Aug 06, 2008
Posts: 83

I guess you need to do following

1. Use a Library like POI from Apatche to read the excel file

2. Then use File IO Library like Apache Commons - IO to created the directory structure.


Hope this helps


Web Development Tips and Tutorials - By Sachin
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32654
    
    4
Question too difficult for “beginning”; moving discussion.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to read an excel file and create a directory structure
 
Similar Threads
creating a tree in JSP
Subtree in JTree
JSF templates
Retrieve Folder and File Information
packages and folders