Now it prints to console only last 128 symbols before pattern was found. So now it can read file with 541 MB line.