Java FileWriter Write saveAuthFile(String fileName, String raw)

Here you can find the source of saveAuthFile(String fileName, String raw)

Description

save Auth File

License

LGPL

Declaration

public static void saveAuthFile(String fileName, String raw) 

Method Source Code


//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);
        }
    }
}

Related

  1. save2DArray(float[][] data, String filePath)
  2. save2File(String fileName, String content)
  3. save_array(double[] array, String fname)
  4. saveAllToFile(String filename, String... strings)
  5. saveArrayNames(int[] array, String[] names, String fname)
  6. saveBufferInFile(String buffer, File filename)
  7. saveCCS(Map contributionScore, String diseaseState, String file)
  8. saveColumn(int[] density, String filename)
  9. saveConfig(File conf, Map data)