Open the file in shared mode not to lock file.