简体   繁体   中英

store user name and password in a file instead of using database in C

I am purely a beginner to programming. I want to store user name and password in a file ( Let's say XML or any other ). I will need to use that file for storing user name and password for authentication of my website instead of using database. Can anyone advise me what type of file should i use and provide link if any such codes? Please take in mind that I have to do it in C language. Thanks in advance!

This sounds like a home work question so let me give you some ideas. Also storing a user name and a password in a file in clear text is a bad idea.

you can use the folowing std lib function to do what you need

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM