public File createFormattedFile(String filename) throws IOException {
		File outfile = new File("outfile");
		BufferedWriter writer = new BufferedWriter(new FileWriter(outfile));
		String word = new String();
		BufferedReader reader = new BufferedReader(new FileReader(new File(filename)));
		String line = reader.readLine();
		while (line != null) {
			line = stripPunctuationFromString(line);
			while (line.length() > 0) {
				word = getNextWord(line);
				word.toLowerCase();
				writer.write(word);
				writer.append('\n');
				if (word.length() >= line.length()) {
					line = new String();
				} else {
					line = line.substring(word.length() + 1);
				}
			}
			line = reader.readLine();
		}
		reader.close();
		writer.close();
		return outfile;
	}