void megaadmin()
{
system("cls");
cout<<"this console is only for registering new admins";
cout<<"please enter the required username";
string temporary_string;
cin>>temporary_string;
ofstream f("admin_details.txt",ios::out|ios::app);
f<<temporary_string;
cout<<"please enter the password";
cin>>temporary_string;
f<<temporary_string;
cout<<"would u like to enter more usernames and passwords if yes enter 1 eles 2";
int n;
cin>>n;
if(n==1)
megaadmin();
else
exit(0);
}
admin_details.txt is getting created but the information that is the username and password that i entering is not getting stored in that particular text file