📅  最后修改于: 2022-03-11 14:52:33.133000             🧑  作者: Mango
String fileData = "yourContent";
FileOutputStream fos = new FileOutputStream("yourFile.txt");
fos.write(fileData.getBytes());
fos.flush();
fos.close();