String to BigInteger in Java
<p>This is my code:</p>

<pre><code>public class sample {
   public static void main(String []args) throws Exception {

      System.out.println("Enter from file:");

      BufferedReader br=new BufferedReader(new FileReader("C:\\Users\\KK\\A Key.txt"));

      String currentline;

      while((currentline=br.readLine())!=null){

         System.out.println(currentline);
      }

      BigInteger a = new BigInteger(currentline); 

      System.out.println(a);

  }
</code></pre>

<p>I want to read from the text document , convert it into big integer from a string, I tried this but i get a run time error , How to convert String into corresponding Big integer Ascii value. </p>