private static void print(String[] temp, String file) {
		PrintWriter pw = null;
		try {
			pw = new PrintWriter(
					new FileWriter("testout" + file + ".txt", true));
			pw.append("Fields: ");
                        String str = "Fields: ";
			for (Field f : Geometry.getInstance().getMap()) {
				pw.append(f.getId() + " ");
                                str = str + f.getId() + " ";
			}
                        System.out.println(str);
                        str = "Roads: ";
			pw.append("\nRoads: ");
			for (List<Field> fs : Geometry.getInstance().getRoads()) {
				int i = 1;
				if (!fs.isEmpty()) {
					pw.append(String.valueOf(i) + ":\n");
                                        System.out.println(str + String.valueOf(i) +":");
					for (Field field : fs) {
						pw.append(field.getId() + "\n");
                                                System.out.println(field.getId());
                                                
					}
				}
				i++;
			}
			for (Monitor m : Geometry.getInstance().getMap()) {
				m.print(pw);
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} finally {
			pw.close();
		}

	}