I am in trouble to comparing user input with the content in txt file.
let say I have a txt file
line1: username1
line2: pw1
line3: username2
line4: pw2
the user input username1&pw1, how can I compare the user input with the content inside txt file?? As <string> is not allowed to use.
First you need to get the user input and store it in variables like: char username[32], char password[32].
Then to check if you got the input correct just print it on the screen.
This would be the first step.
I hope this gives you enough infos to start coding.
When you have finished the first step post your code and I - or someone else - can help you with the second step.