6
,如果我有這樣的代碼,我怎麼能保持原有文件的文件名或將其重新分配到新的?:從InputStream(Java)的獲取文件名
InputStream input= assetInfo.openStream();
File t = new File("");
OutputStream out = new FileOutputStream(t);
int read=0;
byte[] bytes = new byte[1024];
while((read = input.read(bytes))!= -1){
out.write(bytes, 0, read);
}
謝謝,這是明確的 – Tim 2011-04-23 22:07:22