Java PrintWriter Create getPrintWriter(String nombreFichero)

Here you can find the source of getPrintWriter(String nombreFichero)

Description

get Print Writer

License

Open Source License

Declaration

public static PrintWriter getPrintWriter(String nombreFichero) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class Main {
    public static PrintWriter getPrintWriter(String nombreFichero) throws IOException {
        PrintWriter printWriter;// w  ww  . ja  v  a  2  s  .com
        FileWriter fileWriter;
        fileWriter = new FileWriter(nombreFichero);
        printWriter = new PrintWriter(fileWriter);
        return printWriter;
        //Fin de getPrintWriter
    }
}

Related

  1. getPrintWriter(File file)
  2. getPrintwriter(File file, boolean append)
  3. getPrintWriter(final File aFile, final boolean append)
  4. getPrintWriter(String filename)
  5. getPrintWriter(String fileName, Writer out)
  6. getPrintWriter(String path, String charset, boolean isAppend)