Here you can find the source of saveAuthFile(String fileName, String raw)
public static void saveAuthFile(String fileName, String raw)
//package com.java2s; //License from project: LGPL import java.io.*; public class Main { public static void saveAuthFile(String fileName, String raw) { FileWriter f = null;//from www. j a va 2s. c o m try { f = new FileWriter(fileName, false); f.write(raw); f.flush(); f.close(); } catch (Exception e) { throw new RuntimeException(e); } } }