0
我想將輸入流寫入java中的文件。如何將內容寫入java中的文本文件?將內容寫入輸入流的文件
try {
BufferedReader in = new BufferedReader(new
InputStreamReader(client.getInputStream()));
//I want to write the content to a file line by line here
while (!in.ready()) {}
System.out.print("'\n");
in.close();
}
谷歌它,你會得到你答。 – Arpit