Basic Trigger Example

Does anybody have an example of a basic trigger that writes the current file number and ISN to another file (basic audit)?

Thanks in advance.