simple login program in c using file manipulation

General software, Operating Systems, and Programming discussion.
Everything from software questions, OSes, simple HTML to scripting languages, Perl, PHP, Python, MySQL, VB, C++ etc.
Post Reply
marcega
New Member
Posts: 1
Joined: Sat Oct 19, 2013 11:39 pm

simple login program in c using file manipulation

Post by marcega »

Can anyone help me to create a program in c that the user will input his/her username and password and the program will search to a file. And if that username and password are in the file for example the user input:

username: user
password: pass

and the value of the file are:
user1 pass1 08
user pass 78
username password 19

it should be successfully login because the username and password of the user matches the value in the second line of the file and the user_id umber 78 will be save to another variable. But if it is not the program will print "Invalid Username or Password".
Please guys help me to create this program.i really try to make this but always error and sometimes segmentation fault.. Actually im running out of time because tomorrow will be the deadline of submission of the project. :cry: :cry: :cry:
User avatar
TonyT
SG VIP
Posts: 10356
Joined: Fri Jan 28, 2000 12:00 am
Location: Fairfax, VA

Post by TonyT »

No one has any right to force data on you
and command you to believe it or else.
If it is not true for you, it isn't true.

LRH
jadrian01
New Member
Posts: 1
Joined: Mon Aug 21, 2017 9:12 pm

Post by jadrian01 »

I have a company bank account in USA for an unlimited transfer...we share 50/50...serious one should contact me for details via kapadran@gmail.com
Post Reply