Here you can find the source of getPrintWriter(String nombreFichero)
public static PrintWriter getPrintWriter(String nombreFichero) throws IOException
//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 } }