Code example for Properties

Methods: save, setProperty

0
			return null; 
		} 
	} 
 
	public static Location save(File stateFile, String title) throws IOException {
		Properties prop = new Properties();
		prop.setProperty("title", title);
		// prop.setProperty("pos", Integer.toString(pos)); 
		FileOutputStream fos = new FileOutputStream(stateFile);
		prop.save(fos, "");
		fos.close();
		return new Location(title);
	} 
 
 
	public String title;
 
	public Location(String title) {
		super(); 
		this.title = title;
	}