Which file type to use
The type of file that makes sense depends upon what you plan on storing and how will it be accessed. For example, if you're just writing memos or emails that don't require updating (perhaps you just rewrite them), a standard sequential text file is perfect. On the other hand, if you are doing a small "client" app where demographic data (e.g., name address, etc.) must be updateable, fixed record length random access files offer a viable solution. Such random access files can be searched and updated quickly, but don't have the associated overhead of a fullblown DBMS. Chapter 13 in my book lays this out and also gives some thoughts on when to use sequential, random access, or DBMS files during the design stage.
While obviously I'd like you to buy the book, make a trip to your local bookstore and thumb through Chapter 13 and see if it might help.
Dr. Purdum
__________________
Jack Purdum, Ph.D.
Author: Beginning C# 3.0: Introduction to Object Oriented Programming (and 14 other programming texts)
|