Use ofstream from std

See merge request gaudi/Gaudi!1335
18 jobs for master in 16 minutes and 12 seconds (queued for 1 second)