编写程序在windows下创建目录树D:\temp\temp1\temp2,并创建一个文件1.txt,在该文件中写入字符串”How are you!”。一会就要上传的,在线的朋友帮帮我.谢了

热心网友

packagea; .*;/***Title:**Description:** (c)2005**Company:**@authornotattributable*@version1.0*/publicclassA{publicstaticvoidmain(String[]args)throwsIOException{booleansuccess=(newFile("d:/temp/temp1/temp2")).mkdirs();assertsuccess=true;BufferedWriterbw=newBufferedWriter(newFileWriter("d:/temp/temp1/temp2/1.txt"));bw.write("Howareyou!"); ose();}}