Click here to Skip to main content
15,887,988 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
plzz give me solution without database login and all login details are save in .txt file
Posted

1 solution

During user creation , save new user credentials in text file which should be encrypted.you can use predefined string format to store user details which will make easy to sort out user name & password.

You can also try XML files with encrypted node fields.
 
Share this answer
 
Comments
Member 11191738 30-Oct-14 2:54am    
plz send a code
V5709 30-Oct-14 3:09am    
for writing to text file..

FileStream fs = new FileStream("*Your file path*", FileMode.OpenOrCreate, FileAccess.Write);
StreamWriter m_streamWriter = new StreamWriter(fs);
m_streamWriter.BaseStream.Seek(0, SeekOrigin.End);

m_streamWriter.WriteLine(*User details encrypted string*);
m_streamWriter.Flush();
m_streamWriter.Close();


& while login, encrypt entered credentials with same encryption logic, & then find out that string in text file.
Member 11191738 30-Oct-14 6:32am    
thanxx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900