can anyone help me to figure out why the code doesn't edit the output file? its supposed to use the I/O Stream methods, but the output file comes up as an empty page. here is the code:

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.*;

public class SimpleDataProcessor {

public static void main(String[] args) throws IOException {

CountWords();
CountCharacters();
Prepositions();
Occurrences();

}

public static void CountWords() throws IOException {

FileReader inputStream = null;
FileWriter outputStream = null;
String fileContents = "";

try {
inputStream = new FileReader("/State_Of_The_Union_2012_Address.txt");
outputStream = new FileWriter("/modified_State_Of_The_Union_2012_Address.txt");
BufferedReader br = new BufferedReader(inputStream);

String lineRead;
String numOfWords;

while ((lineRead = br.readLine()) != null) {
fileContents = fileContents + "\n" + lineRead;
}
String[] count = fileContents.split(" ");

numOfWords = ("the total word count is " + (count.length - 2));
System.out.println(numOfWords);

outputStream.write("the number of words is: " + numOfWords);

} finally {
if (inputStream != null) {
inputStream.close();
}
if (outputStream != null) {
outputStream.close();
}


}
}

public static void CountCharacters() throws IOException {

FileReader inputStream = null;
FileWriter outputStream = null;
String line;
int charCount;

try {
inputStream = new FileReader("/State_Of_The_Union_2012_Address.txt");
outputStream = new FileWriter("/modified_State_Of_The_Union_2012_Address.txt");
BufferedReader br = new BufferedReader(inputStream);

line = br.readLine();
charCount = line.length();

outputStream.write("number of characters is: " + charCount);
} finally {
if (inputStream != null) {
inputStream.close();

}
if (outputStream != null) {
outputStream.close();
}
}

}

public static void Prepositions() throws IOException {

FileReader inputStream = null;
FileWriter outputStream = null;
String line;
int at_count = 0;
int about_count = 0;
int in_count = 0;
int of_count = 0;
int until_count = 0;

try {
inputStream = new FileReader("/State_Of_The_Union_2012_Address.txt");
outputStream = new FileWriter("/modified_State_Of_The_Union_2012_Address.txt");
BufferedReader br = new BufferedReader(inputStream);

line = br.readLine();
if ("at".equals(line)) {
at_count++;
outputStream.write("'at' occurs: " + at_count);
}
if ("about".equals(line)) {
about_count++;
outputStream.write("'about' occurs: " + about_count);
}
if ("in".equals(line)) {
in_count++;
outputStream.write("'in' occurs: " + in_count);
}
if ("of".equals(line)) {
of_count++;
outputStream.write("'of' occurs: " + of_count);
}
if ("until".equals(line)) {
until_count++;
outputStream.write("'until' occurs: " + until_count);

}
} finally {
if (inputStream != null) {
inputStream.close();
}
if (outputStream != null) {
outputStream.close();
}
}
}

public static void Occurrences() throws IOException {
FileReader inputStream = null;
FileWriter outputStream = null;
String line;
int the_count = 0;

try {
inputStream = new FileReader("/State_Of_The_Union_2012_Address.txt");
outputStream = new FileWriter("/modified_State_Of_The_Union_2012_Address.txt");
BufferedReader br = new BufferedReader(inputStream);

line = br.readLine();
if (("the".equals(line)) || ("The".equals(line))) {
the_count++;

outputStream.write("'The' occurs: " + the_count);

if ("the".equals(line)) {
line.replaceAll("the", "a");

if ("The".equals(line)) {
line.replaceAll("The", "A");
}
outputStream.write(line);
System.out.println(line);
}
}
} finally {
if (inputStream != null) {
inputStream.close();

}
if (outputStream != null) {
outputStream.close();

}
}
}
}