Ravi schreef:
(fixed top-posting)
>> Hi group,
>>
[quoted text clipped - 42 lines]
>> Any other remarks on how to do this more nicely? For example, a way to
>> recover instead of doing System.exit.
> Do you mean this?
> http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#mkdir()
Yes. Although I use Java 6, so it’d rather be
http://java.sun.com/javase/6/docs/api/java/io/File.html#mkdir()
My question is, though, whether my idiom is good, or whether better ways
exist to do this.
H.

Signature
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
Lew - 29 Nov 2007 14:46 GMT
Ravi schreef:
>> Do you mean this?
>> http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#mkdir()
> Yes. Although I use Java 6, so it’d rather be
>
> http://java.sun.com/javase/6/docs/api/java/io/File.html#mkdir()
And you're hardly an "early adopter" to do so - Java 6 is coming up on its
first anniversary, while Java 1.4 is less than a year from retirement.
> My question is, though, whether my idiom is good, or whether better ways
> exist to do this.
What would "better" mean for you in this context?

Signature
Lew