import java.io.*;public class temp
{
public static void main(String args[]) throws IOException
{
BufferedReader buf;
String str;
System.out.println("please input the String to write!");
buf=new BufferedReader(new InputStreamReader(System.in));
str=buf.readLine();
FileWriter fw=new FileWriter("c:\\temp.txt");
fw.write(str);
fw.close();
}
}
{
public static void main(String args[]) throws IOException
{
BufferedReader buf;
String str;
System.out.println("please input the String to write!");
buf=new BufferedReader(new InputStreamReader(System.in));
str=buf.readLine();
FileWriter fw=new FileWriter("c:\\temp.txt");
fw.write(str);
fw.close();
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货