Previous Next        Current Page: NeXtMidas Training / Working with Files / Lab 2 / Instructions
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   
   - Lab 2   
      - Instructions   
      - Solution   
   + 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   


  • Lab 2:
    • For this lab you will be asked to access different types of files using several different methods.
    • What you need to do:
      1. Dump the lines in the source code for the STATUS command ($NMROOT/nxm/sys/intr/Status.java) using the package syntax.
      2. Form the path for apenny.prm in AREA=DAT, OPT=SYS in a platform independent way. Then use the if command to check for its existence from the shell.
      3. Can you list the files in
        original: http://nextmidas.com/nm/nxm/sys/dat/ (currently unavailable)
        alternate: file:///opt/midas/nxmlatest/nxm/sys/dat/ (where /opt/midas/nxmlatest is a softlink to your local nxm installation)
        Why or why not?
      4. Can you STATUS the file
        original: http://nextmidas.com/nm/nxm/sys/dat/apenny.prm (currently unavailable)
        alternate: file:///opt/midas/nxmlatest/nxm/sys/dat/apenny.prm (where /opt/midas/nxmlatest is a softlink to your local nxm installation)
        Why or why not?
      5. Use the NOOP command to copy the first half of the elements from
        original: http://nextmidas.com/nm/nxm/sys/dat/apenny.prm
        alternate: file:///opt/midas/nxmlatest/nxm/sys/dat/apenny.prm (where /opt/midas/nxmlatest is a softlink to your local nxm installation)
        to a file halfpenny.prm in your WRITE aux.

back