954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Reading/Writing To Text File Error

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

Attachments Main.zip (149.32KB)
NavenKumar
Newbie Poster
2 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

>>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.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

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

NavenKumar
Newbie Poster
2 posts since Sep 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You