Here you can find the source of writeString(String data, String file_path)
public static void writeString(String data, String file_path)
//package com.java2s; //License from project: Open Source License import java.io.FileOutputStream; public class Main { public static void writeString(String data, String file_path) { try {//w ww . j av a 2 s .c o m FileOutputStream out_s = new FileOutputStream(file_path); out_s.write(data.getBytes()); out_s.close(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }