public static OpenFile createFile(String filename) {
		try {
			int lastDir = filename.lastIndexOf("/");
			File file = new File(filename.substring(0, lastDir));
			if (lastDir != -1) {
				file.mkdir();
			}
			PrintWriter writer = new PrintWriter(filename);
			writer.close();
		} catch (FileNotFoundException e) {
			System.out.println("Error creating file: " + filename);			
		}
		return new OpenFile(filename);
	}