public void readOrders() {
        String line;

        if (fileName == null) {
            System.err.println("No file name set for order list. Data read aborted.");
            return;
        }
        try {
            File file = new File(fileName);
            Scanner scanner = new Scanner(file, "iso-8859-1");
            String[] sline;

            // Read number of orders
            line = (scanner.nextLine());
            orders = Integer.parseInt(line.trim());

            // Debug printout: network size data
            System.out.println("Orders: " + orders);

            // Read nodes as number, x, y
            for (int i = 0; i < orders; i++) {
                line = scanner.nextLine();
                //split space separated data on line
                sline = line.split(" ");
                if ("A".equals(sline[0].trim())) {
                    orderStart[i] = 0; // Let the A shelf be represented by 0
                } else {
                    orderStart[i] = Integer.parseInt(sline[0].trim());
                }

                if ("A".equals(sline[1].trim())) {
                    orderEnd[i] = 0;
                } else {
                    orderEnd[i] = Integer.parseInt(sline[1].trim());
                }
            }

            // Debug printout: print data for node 1
            System.out.println("Order 1: " + orderStart[0] + " " + orderEnd[0]);


            ordersRead = true;  // Indicate that all network data is in place in the DataStore

        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }