123
logfile new std::ofstream; logfile -> open(filename, std::ios::app); *logfile << a
new
std::ofstream logfile(filename, std::ios::app);