• Lab 4:
    • Write a lite version of NOOP.
      nM> primlab4 <IN> <OUT>
    • Your primitive should take in a file and copy it to an output file.
      • There is no need to do any data reformatting, computations, or throttling.
      • You only need to work with Midas Blue files (i.e. DataFile) and pipes (which also use DataFile).
    • Tips:
      • Try using the MA.getDataFile(<name>, <file>, <flags>) method when getting the output file.
        • This will get a new file that has matching header information as another file (in this case the input file).
        • Since MA.getDataFile(<name>, <file>, <flags>) is only used when getting an output file there is no need to use the OUTPUT flag (you can just use 0 for <flags>).
        • Remember to open the input file, before using it here (as this will try to read the input file's headers).
    • Update the command dictionary and build the primitive.
    • Test your primitive.