// 写数据到硬盘上
public static void main(String[] args) throws IOException {
// File file = new File("G:\\a\\a.txt");
FileOutputStream fileOutputStream = new FileOutputStream("G:\\a\\a.txt");
String a="aaa";
byte[] bytes = a.getBytes();
fileOutputStream.write(bytes);
fileOutputStream.close();
}
04-27
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交