create dir structure and file name creation as specified

hai,i need to create a directory structure as given.dir: id/year/month/day/ how a file can be saved as given.file: savecount-dd-hh-mm-filetype
[177 byte] By [venkat24a] at [2007-11-27 6:33:57]
# 1

String id = ...;

int year = ...;

int month = ...;

...

File f = new File(id + File.pathSeparator + year + File.pathSeparator + month + File.pathSeparator + day + File.pathSeparator + savecount + "-" + ...

// (Edit) file.createNewFile();

f.createNewFile();

Message was edited by:

j_shadinata

j_shadinataa at 2007-7-12 18:00:03 > top of Java-index,Java Essentials,Java Programming...