@@ -0,0 +1,468 @@
+import java.io.File;%0Aimport java.io.FileNotFoundException;%0Aimport java.util.Scanner;%0A%0Apublic class FileOps %7B%0A%0A%09public static void main(String%5B%5D args) throws FileNotFoundException %7B%0A%09%09String filename = %22src/FileOps.java%22;%0A%09%09%0A%09%09File textFile = new File(filename);%0A%09%0A%09%09Scanner in = new Scanner(textFile);%0A%09%09int count = 1; %0A%09%09while (in.hasNextLine() ) %7B%0A%09%09%09String line = in.nextLine();%0A%09%09%09System.out.println(count + %22: %22 + line);%0A%09%09%09count += 1;%0A%09%09%7D%0A%09%09%0A%09%09in.close();%0A%09%7D%0A%0A%7D%0A

read files using scanne