Rem This sample sends information about credit card access to a log file.
Private Sub Terminal_CreditCardRecognized(ByVal sender As Variant, ByVal AccountNumber As String, ByVal User As String, _
ByVal MachineName As String, ByVal UserDomainName As String, ByVal DateTime As String, ByVal EventType As String, ByVal success As Long)
Dim accessLog As String
Dim path As String
Dim fnum As Integer
accessLog = "Account number: " + AccountNumber + " User: " + User + _
" Machine name: " + MachineName + "," + " Time: " + DateTime
path = "C:\Users\Public\Documents\Micro Focus\Reflection\" & "log.txt"
fnum = FreeFile()
Open path For Append As fnum
Print #fnum, accessLog
Close #fnum
End Sub