public void readFile(int startLine, int endLine)  {
        int currentLineNo = 0;
        BufferedReader in = null;
        try {
            in = new BufferedReader(new FileReader("C:\\Users\\kyle\\Documents\\Tribalwars\\" + villageFileName + ".txt"));
            //read to startLine
            while(currentLineNo < startLine) {
                if (in.readLine() == null) {
                    //early end
                    throw new IOException("File too small");
                }
                currentLineNo++;
            }
            //read until endLine
            while(currentLineNo <= endLine) {
                String line = in.readLine();
                if (line == null) {
                    return;
                }
                System.out.println(line);
                currentLineNo++;
            }
        }
        catch (IOException ex) {
            System.out.println("Problem reading file.\n" + ex.getMessage());
        } finally {
            try { if (in!=null) in.close(); } catch(IOException ignore) {}
        }
    }