home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cslio205.zip / EXAMPLES / 2 / README.TXT < prev   
Text File  |  1996-11-06  |  1KB  |  47 lines

  1.  
  2. DEMO 2 shows that CSLIB is very well capable of dealing
  3. with databases containing thousands of records.
  4.  
  5. The demo uses records with only two fields: NAME and DATA.
  6. CSDBGEN was used to generate the source files demodb.cpp and demodb.h.
  7. To do so, it used the file demodb.def as input.
  8.  
  9.  
  10. Files.
  11.  
  12. 1) load.exe:   A dos executable.
  13.      Load has to be used to (initally) create and fill the database
  14.      and indexes.
  15.      To do so, it needs an ASCII input file. It assumes every line
  16.      represents a record. Everything before the first space is considered
  17.      the DATA part. Everything after that is considered the NAME part.
  18.  
  19.      You can feed 'load' any ASCII file which follows this format.
  20.  
  21. 2) college.txt: An ASCII file.
  22.      An example input file for 'load'.
  23.      It contains a list of colleges (about 2500) and their web sites.
  24.  
  25.  
  26. 3) list.exe:   A dos executable.
  27.      This can list the databases created with 'load' in three
  28.      possible orders.
  29.      a) sorted on the 'name' field. It does this by using the corresponding
  30.                     index.
  31.      b) sorted on the 'data' field. It does this by using the corresponding
  32.                     index.
  33.      c) Unsorted: The database is listed in its 'natural' order. No index
  34.           will be used.
  35.  
  36.  
  37.  
  38.  
  39. If you like to toy around a bit, try using the csdir and csinfo utils
  40. to get a closer look at the dabases. Or use your own input file instead
  41. of 'college.txt' and see what happens.
  42.  
  43.  
  44.  
  45.  
  46.  
  47.