Add a util to write source files.

Change-Id: I471a7ef3793eb30b5b9766353939029b7740a8aa