Improve [log parser]: memory usage - replace get_file_contents() to fopen/fgets functions