Search:

Type: Posts; User: kenster421

Search: Search took 0.10 seconds.

  1. Re: Problem with Reading very long line using bufferedReader

    Apparently, BufferedReader is better for reading line streams from a text file and the limit for strings is 2 billion characters. My suggesstion: read the file one character at a time...
  2. Re: Problem with Reading very long line using bufferedReader

    Try using a scanner instead:


    Scanner scanner = new Scanner(new File(inFile));

    while(scanner.hasNextLine())
    {
    System.out.println(scanner.nextLine());
    }
Results 1 to 2 of 2