Why read data from a text file C# -


i'm learning c # right , i've gotten point console applications i'm learn how read data text file. before start learning how make program i've been trying find out why want this. feel if understand why i'm doing can better understand benefits of , give time deserves when being taught. appreciate if tell me when , how use reading data text file , benefits are? have been looking couple of weeks , can't find , need started. thank in advance.

at basic level, read data text file because data need stored in text file (as opposed database or retrieved web service call).

why data stored in text files? many reasons:

  1. text files amongst easiest files create , process. un*x comes whole plethora of tools creating, searching, filtering , modifying them , many have been ported windows.
  2. little can go wrong text files. indexes can corrupted on databases. database file formats vary 1 database next , on. simple csv (comma separated variable) file form of text file universally supported.
  3. editing text file easy. no need heavy graphical editors. can use notepad vim, emacs or sublime.
  4. programmatically, text files not require heavy libraries access.

these days, data stored in text files for:

  1. configuration (since little can go wrong , easy edit)
  2. logging (since easy create , view)
  3. sharing data between systems (since lowest common denominator). remember http, smtp , many common internet standards based on text.
  4. historical or legacy systems updated use database or more appropriate.

Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -