Fixed #4987: use easier way to retrieve file content and pass to `parse` function
Merge pull request #367 from pandamicro/master

Fixed #4987: use easier way to retrieve file content and pass to `parse` function