Answers for "write file via common io"

0

write file via common io

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));
	}
}
Posted by: Guest on December-01-2020

Browse Popular Code Answers by Language