Previous Next        Current Page: NeXtMidas Training / Working with Files / The AUX List / The Read and Write AUX
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
   - File Basics   
   - The AUX List   
      - What is an AUX?   
      - Special AUX Entries   
      - The Read and Write AUX   
      - The AUX Command   
   + Basic File Commands   
   + Lab 1   
   + File Names   
   + 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   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • The Write AUX:
    • The Write AUX is a single AUX name identifying the AUX to which files are normally written.
    • Unlike the Read AUX which can have multiple entries, the Write AUX only has a single entry.
    • This is initially set to AUX 1, but can be changed as required.
    • Important Note: When writing to a file, if the file is found in one of the directories on the Read AUX list, it will be overwritten with the new data. If no file with a matching name is found a new file is created in the Write AUX.
      • This behavior matches X-Midas.
  • The Read AUX:
    • The Read AUX is a list of AUX names (separated by a pipe ("|") character) indicating the AUXs where files are normally read from.
    • When a file is specified by name only, NeXtMidas searches for the file in each of the AUXs identified on the Read AUX list in the order in which it appears on the Read AUX list (left-to-right).
Don't Make This Mistake:
It is a common mistake for first time Midas users to expect output files to be created in the AUX specified on the Write AUX. If a file is found on the Read AUX that matches an output file name, the Write AUX is ignored and the existing file on the Read AUX is overwritten by the new file.