Many of my programs output huge volumes of data for me to review on Excel. The best way to view all these files is to use a tab deliminated text format. Currently i use this chu
Don't use endl. It will be flushing the stream buffers, which is potentially very inefficient. Instead:
output << '\n';