@@ -0,0 +1,720 @@
+package file;%0A%0Aimport java.io.FileInputStream;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.IOException;%0A%0Apublic class Reader %7B%0A%09%0A%09public static String read(String fileName)%7B%0A%09%09String content = %22%22;%0A%09%09%0A%09%09FileInputStream fin;%0A%09%09try %7B%0A%09%09%09fin = new FileInputStream(fileName);%0A%09%09%7D catch (FileNotFoundException e) %7B%0A%09%09%09System.out.println(%22%5BERROR%5D: Can't find file named %5C%22%22 + fileName + %22%5C%22%22);%0A%09%09%09return %22%22;%0A%09%09%7D   %0A%09%09  %0A%09%09try %7B%0A%09%09%09int length = fin.available();%0A%09%09%09byte %5B%5D buffer = new byte%5Blength%5D;%0A%09%09%09fin.read(buffer);       %0A%09%09%09content = new String(buffer);%0A%09%09%09fin.close();%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09System.out.println(%22%5BERROR%5D: Read data from file %5C%22%22 + fileName + %22%5C%22 failed%22);%0A%09%09%7D   %0A%0A%09%09return content;%0A%09%7D%0A%7D%0A

Create Reader.java