Fixed how to initialize ofstream.  Opening the file while declaring it is deprecated with g++