how abt this:
Code:
if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } else { if (!File.Exists(path)) {...// u create the file save it hereon else { Response.Write(""); }
..if a directory has already been created it chks if the path xsits ..it self xplanatory..