timeclock program

im writing a program that creates an output file with employee name and time of punch. Its working fine only thing is with every new punch it replaces its self anybody have any idea how i could resolve this issue. I was thinking about writing a program that would extract those files daily and organize them into other folders by date any ideas would be awesome thank you
Try ios::app

All output operations are performed at the end of the file, appending the content to the current content of the file. This flag can only be used in streams open for output-only operations.
perfect that worked thank you
Topic archived. No new replies allowed.