Writing to an Output File

How to Write to an Output File

The following example opens an output file and writes selected events to it.

Files for this example

Copy the following files from

into your working directory:

Outputting events in ZBS format to a file

Take a look inside example4.F.

Compile and run this program in the same way as for the first examples. You should get a file called example4.zbs created. This contains the selected events in ZBS format. You can look at them with superscan, or use this file as input to another SK program.

You can have access to more than one input or output file in the same program, by adding more lines to the script that runs the program, and associating a different lun to each file.