Here you can find the source of saveFile(String filePath, String content)
public static void saveFile(String filePath, String content) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileWriter; import java.io.IOException; public class Main { /**/*from w w w .j a v a 2 s .c om*/ * Saves the supplied content to the specified file path. */ public static void saveFile(String filePath, String content) throws IOException { FileWriter fw = new FileWriter(new File(filePath)); fw.write(content); fw.close(); } }