/*
 * MLB.java
 *
 * A code template file for a program that searches for MLB
 * team statistics from a file.
 *
 * Author: S-111 Course Staff
 * Date: June 7, 2015
 */

import java.util.*;
import java.io.*;

public class MLB {
    public static final String FILENAME = "mlb.txt";

    public static void main(String args[])
        throws FileNotFoundException
    {
        Scanner console = new Scanner(System.in);

        System.out.println("*** Team Statistics Finder ***");

        /*
         * After you complete searchByTeamName() below, modify
         * this so that the program repeatedly asks the user
         * for another team until the user enters "q" to quit.
         */
        System.out.println();
        System.out.print("Enter team name (or q to quit): ");
        String teamName = console.nextLine();
        searchByTeamName(teamName);
    }


    /*
     * Searches for the specified team name in the data file and,
     * if it is found, print the relevant data. If the team name
     * is not found, print the appropriate message.
     */
    public static void searchByTeamName(String teamName)
        throws FileNotFoundException
    {
        Scanner input = new Scanner(new File(FILENAME));

        /* Complete the rest of the method */

    }
}
