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

public class Dealer
{
    public Dealer(String commandFile, boolean debug)
    {
        _commands = readCommands(commandFile);
        _debug = debug;
    }

    private final Vector<String> readCommands(String inputFile)
    {
        /*
         * Open the data file and read it in.
         */

        System.out.println("here");

        BufferedReader reader = null;
        Vector<String> commands = new Vector<String>();

        try
        {
            System.out.println("open "+inputFile);
            
            reader = new BufferedReader(new FileReader(inputFile));
            String line = null;

            while ((line = reader.readLine()) != null)
            {
                System.out.println("line");
                
                if (_debug)
                    System.out.println("Read command: " + line);

                commands.add(line);
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }

        return commands;
    }

    private Vector<String> _commands;
    private boolean _debug;
}
@@ -137,32 +137,27 @@
 s = 
-readCommands(commandFile
+new Vector%3CString%3E(
 );%0A 
@@ -179,16 +179,60 @@
  debug;%0A
+        %0A        readCommands(commandFile);%0A
     %7D%0A%0A 
@@ -248,30 +248,20 @@
 e final 
-Vector%3CString%3E
+void
  readCom
@@ -364,45 +364,8 @@
 */%0A%0A
-        System.out.println(%22here%22);%0A%0A
     
@@ -402,143 +402,30 @@
 ll;%0A
-        Vector%3CString%3E commands = new Vector%3CString%3E();%0A%0A        try%0A        %7B%0A            System.out.println(%22open %22+inputFile);%0A     
+%0A        try%0A        %7B
     
@@ -520,33 +520,32 @@
 ng line = null;%0A
-%0A
             whil
@@ -544,50 +544,23 @@
     
-while ((line = reader.readLine()) != null)
+%0A            do
 %0A   
@@ -590,33 +590,31 @@
     
-System.out.println(%22line%22
+line = reader.readLine(
 );%0A 
@@ -743,41 +743,114 @@
     
-commands.add(line);%0A            %7D
+if (line != null)%0A                    _commands.add(line);%0A            %7D%0A            while (line != null);
 %0A   
@@ -1115,34 +1115,8 @@
    %7D
-%0A%0A        return commands;
 %0A   

Update Dealer.java