public StringBuilder readFromFileMethod(String fileName) {
        try {
            // Initialize the file input stream
            FileInputStream fstream = new FileInputStream(fileName);
            data = new StringBuilder();

            // Get DataInputStream object
            in = new DataInputStream(fstream);
            br = new BufferedReader(new InputStreamReader(in));
            String strLine = null;

            // Read File Line By Line
            while ((strLine = br.readLine()) != null) {
                // append the content to StringBulder
                data.append(strLine);
                data.append("\n");
            }

            // Close the input stream
            in.close();

        } catch (Exception e) {
            logger.severe("Issue with reading file " + e.getMessage());
        } finally {
            if (in != null) {
                try {
                    in.close();
                } catch (IOException e) {
                    logger.severe("Issue with reading file " + e.getMessage());
                }
            }
            if (br != null) {
                try {
                    br.close();
                } catch (IOException e) {
                    logger.severe("Issue with reading file " + e.getMessage());
                }
            }
        }

        return data;
    }