
Signature
Of making better designs there is no end,
and much refactoring wearies the body.
>>Hello,
>
[quoted text clipped - 8 lines]
> create a new File object with the name of the directory you want to create,
> and call mkdir() on it.
Do you mean
File file = new File("mkdir() whatever/here.txt");
seems a little bit strange...
MArcelo
Chris Smith - 07 Nov 2005 20:08 GMT
> > create a new File object with the name of the directory you want to create,
> > and call mkdir() on it.
> Do you mean
>
> File file = new File("mkdir() whatever/here.txt");
No, that's not what Benji meant. You appear to be struggling with the
very basics of the Java programming language. If so, it would be wise
to back off and spend more time getting familiar with objects and
methods before worrying about learning APIs.
What Benji meant was:
new File(pathName).mkdir();
Where pathName is a String variable containing the path of the directory
you want to create.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
Jeffrey Schwab - 07 Nov 2005 20:13 GMT
>>> Hello,
>>
[quoted text clipped - 17 lines]
>
> MArcelo
import java.io.File;
import java.io.PrintWriter;
public class Mkdir {
static PrintWriter err = new PrintWriter(System.err, true);
public static void main(String[] args) {
if (args.length != 1) {
err.println("usage: java Mkdir <dirname>");
System.exit(1);
}
new File(args[0]).mkdir();
}
}
Marcelo - 07 Nov 2005 21:21 GMT
>>>> Hello,
>>>
[quoted text clipped - 33 lines]
> }
> }
thanks alot
Marcelo