import java.io.*;

public class BufferedUtil {
    public static BufferedWriter getWriter(String output) throws IOException {
        File file = new File(output);
        file.createNewFile();
        return new BufferedWriter(new FileWriter(file));
    }

    public static BufferedReader getReader(String input) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(new File(input))));
        return reader;
    }
}