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...
Type: Posts; User: kenster421
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...
Try using a scanner instead:
Scanner scanner = new Scanner(new File(inFile));
while(scanner.hasNextLine())
{
System.out.println(scanner.nextLine());
}