public void decode_ascii() throws IOException
    {
        String temp="";
        String decoded_string="";
        File file=new File("output.txt");
        BufferedReader br = new BufferedReader(new FileReader(file));
        String line,s="";
        while((line=br.readLine())!=null)
            s+=line;
       // op_size=s.length()*2;
        //System.out.println("S:" + s);
        //System.out.println("Size occupied by output string(in bytes): "+ (op_size=s.length()*2));
        //System.out.println("Compression is approximately: " + ((ip_size-op_size)/(double)ip_size)*100 + "%");
        //ratio = (((ip_size-op_size)/(double)ip_size)*100);
        int i=0;
        for(;i<s.length()-1;i++){
             temp=Integer.toBinaryString((int)s.charAt(i));
            if(temp.length()<8){
                while(temp.length()!=8)
                    temp="0"+temp;
            }
            //System.out.println(temp);
            decoded_string+=temp;
        }
         temp=Integer.toBinaryString((int)s.charAt(i));
         if(temp.length()<8){
                while(temp.length()!=8)
                    temp="0"+temp;
            }
         temp=temp.substring(n);
         decoded_string+=temp;
        /*if(i!=s.length() && s.charAt(i)=='X'){
            for(i=i+1;i<s.length();i++)
                decoded_string+=String.valueOf(s.charAt(i));
        }*/
        System.out.println("Decoded String: " + decoded_string);
        encoded_string=decoded_string;
        decoded_string = "";
        
    }