Angular 4 Write To File