Here you can find the source of getPrintWriter(final File aFile, final boolean append)
Parameter | Description |
---|---|
IOException | an exception |
public static PrintWriter getPrintWriter(final File aFile, final boolean append) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; public class Main { /**/*ww w.j av a2 s . c o m*/ * @return * @throws IOException */ public static PrintWriter getPrintWriter(final File aFile, final boolean append) throws IOException { final FileWriter resFileOut = new FileWriter(aFile, append); PrintWriter ret = new PrintWriter(resFileOut); return ret; } }