posted 15 years ago
if one or more folders within the path do not exist we need to first create them
for example,
"/web/app/root/" + "/folder1/file.jsp"
we know /web/app/root/ exists, but if /folder1/ doesn't exist inside it, we won't be able to write to file.jsp , and the same in the more general case of many folders in the relative path component.
so, try adding a call to mkdirs() of the File object,
Error: Keyboard not attached. Press F1 to continue.