Click here to Skip to main content
15,881,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to save data of a form in text file with it's id.Whe i will search saved data on that time i will use it's id to seatch the stored data.
i will use it multiple time to save multiple datas along with particular ids.
Posted
Updated 18-Oct-11 1:16am
v3
Comments
Nicholas Butler 18-Oct-11 7:07am    
What have you tried? What problems did you have?
sabbi26 18-Oct-11 7:11am    
what u need ?..ur asking how to create a text file with name,how to read and write?

1 solution

A straight text file will probably give you more problems than you want, and may well slow things down considerably, rather than speed them up - mostly because a text file is a flat file, and does not do well for random access such as you will probably want for searching.
Have you considered a structured file instead? XML can do what you want, and Linq to XML should help there, or perhaps a simple database would be a better idea - SQLCE is simple, quick, requires no installation and lets you use most of the facilities of SQL.
 
Share this answer
 

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