Click here to Skip to main content
15,905,877 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how can I write data base with notepad??? for example how can i write a table on it
Posted
Comments
Captain Price 22-Oct-13 9:06am    
You cannot write tables using notepad. You need a database software like MySQL or MSSQL.
Ali-,-reza 22-Oct-13 9:16am    
I know that in complex databased I need sth like MySQL or oracle but in some programs I see they use notepad for data base (or txt files)
Captain Price 22-Oct-13 9:43am    
You can use XML or JSON for storing simple data.

1 solution

You can use anything as a database of some form - but it is not generally as successful as using a "proper" file format. There are a number of problems with using text files to store data: text files have no intrinsic organisation. There is a loose "rule" that a newline character (whatever that is on the particular system, and it does vary) ends a "line" but there is no line-based organisation, so adding or removing a single character to a line means rewriting the entire file from that point on. This makes text file based databases (such as XML, or CSV for example) very inefficient when writing a number of small changes.

If you fix the length of your "lines" or "rows" than you can use a text file as a primitive database, but even then you need to consider a lot of other factors: deleting records and reusing the spaces, the difficulties of multi user access, and so forth.

In practice, it generally isn't worth the effort: there are a lot of simple solutions built into systems nowadays which make your life a lot, lot easier. I'd look at what kind of data you want to store, and what you want to do with it, and probably use an existing formatted system instead of "rolling your own".
 
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