You are on page 1of 1

cout<<"please enter your current password";

cin>>password;

cout<<endl<<"enter your new password";

cin>>password2;

ofstream outfile(path);

outfile<<password2;

outfile.close();

cout<<"your new password is "<<password2;

You might also like