Reputation: 53
I was thinking about creating a simple database where I can store some text, nothing more. My question is: What is the best way to store data without using multiple files?
To my mind came CSV, but I am not sure if this is a proper solution...
Thanks for answers!
Upvotes: 0
Views: 2143
Reputation: 38
I prefer to suggest to use XML for database. Why:
You can use LINQ-to-XML to "save-to and retrieve-from" data.
Upvotes: 0
Reputation: 8894
There's always xml. You can even use linq with that: http://msdn.microsoft.com/en-us/library/system.xml.linq%28v=vs.110%29.aspx
Upvotes: 1
Reputation: 24
I would use XML if you need to store just text . It also gives you more structure.
http://forums.devshed.com/xml-programming-19/xml-alternative-databases-34313.html
Upvotes: 0
Reputation: 413
If you are working with C#, you could easily use an excel worksheet. ( but as suggested json,xml, plain text will work too)
Upvotes: 0
Reputation: 734
I would use a JSON-like file text. Easy to Read, easy to Dump / Save and easy to modify as its supported in all major languages.
Read more here:
Upvotes: 0
Reputation: 60448
If you want a real sql database, you can use SQLCe. Its a SQL Database in a file.
Upvotes: 0