MemCom Reference Manual > Conversion from MemCom version 6 to Version 7

Conversion from MemCom version 6 to Version 7

1. New database structure

The database structure has changed. A MemCom database is now composed of a directory containing 3 or more files:

  • A header file (ASCII text file).

  • One or more index files.

  • One or more data files.

This modification has no consequences on the applications with the exception that in case of copying files the whole directory tree must now be copied (UNIX cp -r instead of cp command). MemCom version 6 databases can be converted by means of the MemCom tool mcconv7. Example: Convert a MemCom version 6 database demo.db to a MemCom version 7 database:

mcconv7 demo.db

mcconv7 creates a database demo.db.mc, mc being the extension of MemCom 7 databases. The neutral file demo.mc6.nf created by mcconv7 can be removed after the conversion operation.

For compatibility reasons the (new) file identifier handle and the (old) file unit handle are the same, i.e one can open a database file with the Fortran open function (or vice versa) and then pass the identifier handle to a C API call like mcDBgetSetArray.