Jump to content

I'm  supposed to make a payroll c++ program and I need to write the employee data in .txt file which I will you to counter the number of employee but every time I run the program the data in .txt file get deleted how to fix that ? 

you need to open your file in "append" mode, not "write" mode

Link to comment
https://linustechtips.com/topic/342553-c-project/#findComment-4669211
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×