IO: creating dirs/files...
- From: maya <maya778899@xxxxxxxxx>
- Date: Fri, 31 Aug 2007 11:05:18 -0400
at work I build rather large websites from scratch...
I figured, just for the hell of it, why not write a java class that creates the dirs and the files that go inside the dirs??? (this would be locally, I develop in Weblogic localhost..) so am talking about a stand-alone class...
first thing I notice in API (1.4) is that mkdir() method doesn't take any params, how do you tell it what to name the dir??
I would like to create for example:
dir 'one', dir 'two', dir 'three', etc..
and inside each one an index.jsp file and other files (and subdirs and files inside the subdirs..) what would be best approach here.. (since I build rather large sites this is not a class I would run all the time, so don't mind hard-coding names of dirs/files in class, then change them for next project (but names of dirs and files would remain the same for the most part for most projects..)
thank you very much...
.
- Follow-Ups:
- Re: IO: creating dirs/files...
- From: Hunter Gratzner
- Re: IO: creating dirs/files...
- From: Eric Sosman
- Re: IO: creating dirs/files...
- Prev by Date: swing widgets: Who's got the focus?
- Next by Date: Re: IO: creating dirs/files...
- Previous by thread: swing widgets: Who's got the focus?
- Next by thread: Re: IO: creating dirs/files...
- Index(es):
Relevant Pages
|