FileOutputStream fos =new FileOutputStream(file);
byte[]arr=new byte[1024];
int len;
while ((len=is.read())!=-1){
fos.write(arr,0,len);
}
socket.close();
fos.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}.start();
}
}
}
//报错
java.io.FileNotFoundException: unDate\E:\JAVA基础口述总结74条.txt (文件名、目录名或卷标语法不正确。)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.heima.lianxi.Lianxi8$1.run(Lianxi8.java:45)
//求大神帮忙看下 我已经晕了