Update Program.cs

Added writer to output file