Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi !
I am writing a program in qt creator and at first when the program is runing I should enter username and password and it should check if the username or password exist in the file . but i dont know how to do it and how to check a file lines .could you tell me ?
Posted

1 solution

Always try Google first. For example for username password entry:

http://www.nkonecny.com/blog/2011/09/30/creating-a-user-login/[^]


Basic file I/o is explained here

http://www.learncpp.com/cpp-tutorial/136-basic-file-io/[^]

You can start with the example and modify it to your needs. If that raises further questions come back here.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900