import java.io.*;
import java.util.*;

/**
 * Practice file i/o with an application that reads lines from a file 
 * containing three integers and writing them to an output file.
 **/

public class FilePlay2
{
    /**
     * The main function for the program described for this class.
     **/
    public static void main (String [] Args)
    {
        final String FORMAT_TOKEN = "Token: %s\n";
        final String FORMAT_COUNT = "Count: %d for line \"%s\".\n";

        String      inFileName = "tester.txt";
        String      outFileName = "good-out.txt";
        String      errFileName = "bad-out.txt";    // Not used in Part 2
        Scanner     inStream;
        Scanner     lineStream;                     // Not used in Part 2
        PrintWriter outStream;
        PrintWriter errStream;                      // Not used in part 2
        String      line;
        String      token;                          // Not used in Part 2
        int         tokenCount;                     // Not used in Part 2
        int         number;                         // Not used in Part 2

        //---------------------------------------------------------
        inStream = Util1.newScanner(new File(inFileName));
        if (inStream == null)
        {
            System.err.printf("Could not open %s for reading.\n%s\n",
             inFileName, Util1.getErrorMessage());
            System.exit(1);
        }
        //---------------------------------------------------------
        try
        {
            outStream = new PrintWriter(new File(outFileName));
        }
        catch (Exception ee)
        {
            outStream = null;
            System.err.printf("Could not open %s for writing.\n%s\n",
             outFileName, ee.toString());
            System.exit(1);
        }
        //---------------------------------------------------------

        }
    }
}
