Previous Next        Current Page: NeXtMidas Training / Working with Files / File Names / Advanced
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   
      - Name and AUX   
      - Name and Path   
      - Package Syntax (nxm.)   
      - URLs   
      - Advanced   
   + File Types   
   + 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   


  • Advanced Ways to Access Files:
    • Trimming is a Midas concept with a section of a file.
    • Trimmers in NeXtMidas are (start:end) where start is the inclusive starting offset starting (zero based) end is the exclusive ending offset. See File Trimmers under the Common Midas concepts section for more information.
      nM> noop apenny.prm(4:10) temp.tmp
      Creates a file called temp with 6 elements.
    • URLs and file trimming can be used powerfully in tandem.
    • For example:
      original: nM> noop http://nextmidas.com/nm/nxm/sys/dat/apenny.prm(0:10) temp.tmp (currently unavailable)
      alternative: nM> noop /opt/midas/nxmlatest/nm/nxm/sys/dat/apenny.prm(0:10) temp.tmp
      (where /opt/midas/nxmlatest is a softlink to your local nxm installation)
      nM> status temp.tmp
X-Midas Users Take Note:
Caveman X-Midas does not support the use of URLs or the use of the nxm. syntax. These were new features added to NeXtMidas that take advantage of the inherent capabilities of Java.
X-Midas Users Take Note:
Caveman X-Midas uses a <myname>(i) syntax to access data in a file. If <myname> is not a result, it is treated as a file name. NeXtMidas will not treat the name as a file, unless the syntax FILE(myname) is used.

back