Previous Next        Current Page: NeXtMidas Training / Working with Files / File Types / Table (.tbl) Files
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
   - File Basics   
   + The AUX List   
   + Basic File Commands   
   + Lab 1   
   + File Names   
   - File Types   
      - File Handlers   
      - Handlers Table   
      - File Interfaces   
      - Supported File Types   
      - Table (.tbl) Files   
      - XML (.xml) Files   
   + Lab 2   
   + Listing Files   
   + Lab 3   
   + Plotting Files   
   + Lab 4   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Table (.tbl) Files:
    • Table files are the serialized file form of a NeXtMidas table.
    • Tables can be saved to a table file using the TABLE command.
    • Tables can be loaded from a table file using the TABLE command.
      • Since tables are used so often in NeXtMidas, there is even a simple way to load a table from a table file:
        nM> res T:myTable myfiletab.tbl
    • Table files are editable in any standard text editor.
      • A sample table file (myfile.tbl):
        X=1
        Y=2
        INNER={
          Z=a string
          Q=100.2
        }
      • This table file can be loaded using the short-cut method shown above.
        nM> res T:myTable myfile.tbl
        nM> res/all myTable
          T: MYTABLE             = Table of 3 entries
          L:  X              = 1
          L:  Y              = 2
          T:  INNER          = Table of 2 entries
         8S:   Z             = a string
          D:   Q             = 100.2
      • An XML file can be loaded into a table as well (Since NeXtMidas 2.3.0)
        nM> res T:myTable nxm.sys.test.test_convert.xml

back