Here you can find the source of saveStringToDisc(final String params, final String filePath)
public static void saveStringToDisc(final String params, final String filePath) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { public static void saveStringToDisc(final String params, final String filePath) throws IOException {//from w ww. j a v a2 s. c om FileWriter fileWriter = null; try { fileWriter = new FileWriter(new File(filePath)); fileWriter.write(params); } finally { if (fileWriter != null) { fileWriter.close(); } } } }