@@ -0,0 +1,625 @@
+// page 26%0A%0A/*%0A *  Inserts a line number for each line in a text file%0A */%0A%0Aimport java.io.*;%0A%0Apublic class TextFileLineNumberInserter %7B%0A%09public static void main(String%5B%5D args) throws IOException %7B%0A%09%09BufferedReader bufferedReader = new BufferedReader(%0A%09%09%09new FileReader(%22D:%5C%5Cinput.txt%22));%0A%09%09PrintWriter printWriter = new PrintWriter(%0A%09%09%09new FileWriter(%22D:%5C%5Coutput.txt%22));%0A%09%09%0A%09%09int lineNumber = 0;%0A%09%09String lineInFile = null;%0A%09%09%0A%09%09while ( ( lineInFile = bufferedReader.readLine() ) != null ) %7B%0A%09%09%09lineNumber++;%0A%09%09%09printWriter.println(lineNumber + %22 %22 + lineInFile);%0A%09%09%7D%0A%09%09%0A%09%09bufferedReader.close();%0A%09%09printWriter.close();%0A%09%7D%0A%7D%0A

Create TextFileLineNumberInserter.java