Code example for FileNotFoundException

0
	} 
 
	private File getFile(File parent, String path) throws IOException {
		File file = new File(parent, path);
		if (!file.exists()) {
			throw new FileNotFoundException(path + " doesn't exist");
		} 
		return file;
	} 
 
	public File getEclipseJdtCorePrefs() throws IOException {
		return getResource("org.eclipse.jdt.core.prefs"); 
	} 
 
	public File getProjectPropertiesFile() throws IOException {
		return getResource("project.properties"); 
	} 
 
	public File getLibraryFile(String filename) throws IOException {
		return getResource("libs/" + filename);