📜  通过通用 io 写入文件 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:52.149000             🧑  作者: Mango

代码示例1
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));
    }
}