I almost completed the system but i'm having problem with reading/writing to text file
Bcoz i can't login nor add details as its not reading from the the txt file
Pls do help me

Thanks In Advance

Recommended Answers

All 2 Replies

>>I almost completed the system
You still have more clean-up work to do.

1) stop using gets() and fflush(stdin). . You are writing a c++ program, not a C program. So replace gets() with cin.getline(). And read this thread how to flush the input stream.

2) Login problem. You need to either add more code that allows people to set up a login account, or just manually add the information to the text file.

Earlier i used the Admin Selection to create user now its not working

can u help me solve this issue
coz fstream cant access the files
pls help me

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.