Add file parsing support.

Reviewer: trivial