📅  最后修改于: 2022-03-11 14:59:52.149000             🧑  作者: Mango
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
public class WriteStringToFile {
public static void main(String[] args) throws IOException {
String string = "File Writter via Common io";
FileUtils.write(new File("./test.txt"), getText(message));
}
}