src/doge/data/ModificationList.java
public static ModificationList parseFromFile(String filePath) {
        try {
            BufferedReader br = new BufferedReader(
                    new InputStreamReader(new FileInputStream(new File(filePath))));
            String line;
            StringBuilder sb = new StringBuilder();
            while ((line = br.readLine()) != null) {
                sb.append(line);
                sb.append(LR);
            }
            br.close();
            return ModificationList.parseListOfMods(sb.toString());
        } catch (IOException ioe) {
            System.err.println(
                    "Something unexpected happened while trying to read from the mod file");
            ioe.printStackTrace();
        }
        return null;
    }
/**
     * Constructor
     *
     * @param filePath file path of a txt file that contains all the modifications
     */
Constructor
@param filePath file path of a txt file that contains all the modifications
Constructor @param filePath file path of a txt file that contains all the modifications
public static ModificationList parseFromFile(String filePath) {
        try {
            BufferedReader br = new BufferedReader(
                    new InputStreamReader(new FileInputStream(new File(filePath))));
            String line;
            StringBuilder sb = new StringBuilder();
            while ((line = br.readLine()) != null) {
                sb.append(line);
                sb.append(LR);
            }
            br.close();
            return ModificationList.parseListOfMods(sb.toString());
        } catch (IOException ioe) {
            System.err.println(
                    "Something unexpected happened while trying to read from the mod file");
            ioe.printStackTrace();
        }
        return null;
    }
public static ModificationList parseFromFile ( String filePath ) { try { BufferedReader br = new BufferedReader ( new InputStreamReader ( new FileInputStream ( new File ( filePath ) ) ) ) ; String line ; StringBuilder sb = new StringBuilder ( ) ; while ( ( line = br . readLine ( ) ) != null ) { sb . append ( line ) ; sb . append ( LR ) ; } br . close ( ) ; return ModificationList . parseListOfMods ( sb . toString ( ) ) ; } catch ( IOException ioe ) { System . err . println ( "Something unexpected happened while trying to read from the mod file" ) ; ioe . printStackTrace ( ) ; } return null ; }
Constructor
 @param filePath file path of a txt file that contains all the modifications
Constructor @param filePath file path of a txt file that contains all the modifications