public static boolean printPos(String name) {
		if(name == null) {
			JFileChooser fc = new JFileChooser(AppConfig.getAppConfig().getLastSelectedFileDirectory());
			fc.setDialogTitle("Select destination file");
			SingleFileFilter posFf = new PositionFileFilter();
			fc.setFileFilter(posFf);
			if(fc.showSaveDialog(Tools.getGUI()) == JFileChooser.APPROVE_OPTION){
				name = fc.getSelectedFile().getAbsolutePath();
				String p = name;
				p = p.substring(0, p.length() - fc.getSelectedFile().getName().length()); // remember the selected path
				AppConfig.getAppConfig().lastSelectedFileDirectory = p;
			} else {
				return false; // (aborted)
			}
		}

		try {
			PrintStream ps = new PrintStream(name);
			// header contains # of nodes and dimension of deployment field
			ps.println("Number of nodes: " + Tools.getNodeList().size());
			Configuration.printConfiguration(ps);
			ps.println(separator);

			for(Node n : Tools.getNodeList()) {
				Position p = n.getPosition();
				ps.println(p.xCoord + ", " + p.yCoord + ", " + p.zCoord);
			}
			ps.close();
			return true;
		} catch (FileNotFoundException e) {
			Tools.minorError(e.getMessage());
		}
		return false;
	}