public MepFile(File file) { try { BufferedReader r = new BufferedReader(new FileReader(file));  version = r.readLine(); name = r.readLine();  r.readLine(); r.readLine(); r.readLine(); r.readLine(); r.readLine();  mechYear = r.readLine(); innerSphere = r.readLine(); techYear = r.readLine(); chassisType = r.readLine(); tonnage = r.readLine();  engineType = r.readLine(); heatSinkType = r.readLine(); armorType = r.readLine(); internalType = r.readLine();  walkMP = r.readLine(); jumpMP = r.readLine(); heatSinks = r.readLine();  r.readLine();  armorPoints = r.readLine(); armorPoints1 = r.readLine(); armorPoints2 = r.readLine();  headArmor = r.readLine(); larmArmor = r.readLine(); ltArmor = r.readLine(); ltrArmor = r.readLine(); ctArmor = r.readLine(); ctrArmor = r.readLine(); rtArmor = r.readLine(); rtrArmor = r.readLine(); rarmArmor = r.readLine(); llegArmor = r.readLine(); rlegArmor = r.readLine();  eqCount = r.readLine();  int eqs = Integer.parseInt(eqCount.substring(1)); equipData = new String[eqs]; for(int i = 0; i < eqs; i++) { equipData[i] = r.readLine(); }  eqWeight = r.readLine(); eqSlots = r.readLine();  r.readLine();  int crits = 78; critData = new String[crits]; for(int i = 0; i < crits; i++) { critData[i] = r.readLine(); }  r.close(); } catch (IOException ex) {  System.err.println("MepFile: error reading file"); }
public MepFile(String filename) { this(new File(filename));
    public MepFile(File file) {        try {            BufferedReader r = new BufferedReader(new FileReader(file));                  version = r.readLine();            name = r.readLine();                  r.readLine(); // don't know what these are            r.readLine();            r.readLine();            r.readLine();            r.readLine();                  mechYear = r.readLine();            innerSphere = r.readLine();            techYear = r.readLine();            chassisType = r.readLine();            tonnage = r.readLine();                  engineType = r.readLine();            heatSinkType = r.readLine();            armorType = r.readLine();            internalType = r.readLine();                  walkMP = r.readLine();            jumpMP = r.readLine();            heatSinks = r.readLine();                  r.readLine(); // weapons table -- useless?            armorPoints = r.readLine();            armorPoints1 = r.readLine(); // what are these two?            armorPoints2 = r.readLine();                  headArmor = r.readLine();            larmArmor = r.readLine();            ltArmor = r.readLine();            ltrArmor = r.readLine();            ctArmor = r.readLine();            ctrArmor = r.readLine();            rtArmor = r.readLine();            rtrArmor = r.readLine();            rarmArmor = r.readLine();            llegArmor = r.readLine();            rlegArmor = r.readLine();                  eqCount = r.readLine();                  int eqs = Integer.parseInt(eqCount.substring(1));            equipData = new String[eqs];            for(int i = 0; i < eqs; i++) {                equipData[i] = r.readLine();            }                  eqWeight = r.readLine();            eqSlots = r.readLine();                  r.readLine(); // mystery number                  int crits = 78;            critData = new String[crits];            for(int i = 0; i < crits; i++) {                critData[i] = r.readLine();            }                  r.close();        } catch (IOException ex) {            //arg!            System.err.println("MepFile: error reading file");        }    }