Call w.Write() instead of Fprintf