@@ -0,0 +1,1837 @@
+package com.cloud.utils;%0A%0Aimport java.io.BufferedInputStream;%0Aimport java.io.BufferedWriter;%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileOutputStream;%0Aimport java.io.FileWriter;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.OutputStream;%0A%0Apublic class FileUtil %7B%0A%09%0A    public static String readFileAsString(String filePath) %7B%0A        File file = new File(filePath);%0A        if(!file.exists())%0A            return null;%0A        %0A        try %7B%0A            byte%5B%5D buffer = new byte%5B(int)file.length()%5D;%0A            BufferedInputStream f = null;%0A            try %7B%0A                f = new BufferedInputStream(new FileInputStream(filePath));%0A                f.read(buffer);%0A            %7D finally %7B%0A                if (f != null) %7B %0A                    try %7B %0A                        f.close(); %0A                    %7D catch (IOException ignored) %7B%0A                    %7D%0A                %7D%0A            %7D%0A            return new String(buffer);%0A        %7D catch(IOException e) %7B%0A            return null;%0A        %7D%0A    %7D%0A    %0A    public static void writeToFile(String content, String filePath) throws IOException %7B%0A        BufferedWriter out = null;%0A        try %7B%0A            out = new BufferedWriter(new FileWriter(filePath));%0A            out.write(content);%0A        %7D finally %7B%0A            if(out != null)%0A                out.close();%0A        %7D%0A    %7D%0A    %0A    public static void copyfile(File f1, File f2) throws IOException %7B%0A        InputStream in = new FileInputStream(f1);%0A        OutputStream out = new FileOutputStream(f2);%0A%0A        try %7B%0A            byte%5B%5D buf = new byte%5B1024%5D;%0A            int len;%0A            while ((len = in.read(buf)) %3E 0) %7B%0A                out.write(buf, 0, len);%0A            %7D%0A        %7D finally %7B%0A            in.close();%0A            out.close();%0A        %7D%0A    %7D%0A%7D%0A%0A

Add FileUtil.java