Question: C programming question: I want to write a C programm to match a user's password and account stored in a file. For example: there is

C programming question:

I want to write a C programm to match a user's password and account stored in a file.

For example: there is a text file containing user information like this:

123456789 123

131231233 233

(the first item is account number,2nd is password)

Now I need to write a C program to ask the user to input the password and account, And then search the file. If these two match, then display a correct message(example: account number 123456789 and password 123 match).

The restrictions for this program are:

You cannot use arrays or other data structures to store the WHOLE records of filesyou can store some of them such as only store account number into array. Whenever you need to search the records of file, read the file directly.

Show me your code , thanks.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!