Amit,
The File class has a constructor which takes both parent, and child as args.
Example :
public File(
String parent, String child)
File f = new File("d:\\amit","test.txt");
f.createNewFile() will create a test.txt file in d:\amit dir I think. Please give it a try!
regds
maha anna
From
Java Doc