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.
         */

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

        try
        {
            reader = new BufferedReader(new FileReader(inputFile));
            String line = null;

            while ((line = reader.readLine()) != null)
            {
                commands.add(line);
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }

        return commands;
    }

    private Vector<String> _commands;
    private boolean _debug;
}
@@ -51,17 +51,17 @@
 s Dealer
-%0A
+ 
 %7B%0A    pu
@@ -71,17 +71,16 @@
 c Dealer
- 
 (String 
@@ -106,20 +106,16 @@
 n debug)
-%0A   
  %7B%0A     
@@ -232,17 +232,16 @@
 Commands
- 
 (String 
@@ -250,20 +250,16 @@
 putFile)
-%0A   
  %7B%0A     
@@ -429,24 +429,16 @@
      try
-%0A       
  %7B%0A     
@@ -587,16 +587,18 @@
 != null)
+ %7B
 %0A       
@@ -606,33 +606,76 @@
     
-%7B%0A               
+    if (_debug)%0A                    System.out.println(%22Read
  command
 s.ad
@@ -674,21 +674,22 @@
 mand
-s.add(
+: %22 + 
 line);%0A
+%0A
     
@@ -696,26 +696,49 @@
         
-%7D%0A
+    commands.add(line);%0A 
         
 %7D%0A      
@@ -721,32 +721,35 @@
 line);%0A         
+   
 %7D%0A        catch 
@@ -737,24 +737,26 @@
    %7D%0A       
+ %7D
  catch (Thro
@@ -764,24 +764,16 @@
 able ex)
-%0A       
  %7B%0A     
@@ -814,32 +814,16 @@
    %7D
-%0A        finally%0A       
+ finally
  %7B%0A 
@@ -836,28 +836,16 @@
      try
-%0A           
  %7B%0A     
@@ -884,28 +884,16 @@
        %7D
-%0A           
  catch (
@@ -905,28 +905,16 @@
 able ex)
-%0A           
  %7B%0A     

Update Dealer.java