given a filename with the path, is there a possible way to create a new file with that name, simultaneously creating the directories in the file path. Suppose that I have to write to a file named: "dir1/dir2/dir3/name.html", where only dir1 exists, is it possible to create dir2 and dir3 and open a new file name.html to write on to. Thanks, ppareek