creating a log file with dataports import

Thanks, it works. I think it will not be very fast, but in this case it is only used to convert some data of an old database. I have now something like this: ---------------- Dataport- OnInitDataport logfile.TEXTMODE(TRUE); bestandnaam:=‘c:\log ‘+ FORMAT(CURRENTDATETIME,13,’<Day,2><Month,2><Year,2> <Hours24,2><Minutes,2><Seconds,2>’)+’.txt’; logfile.CREATE(bestandnaam); Customer-OnBeforeImportRecord logfile.OPEN(bestandnaam); logfile.SEEK(curpos); Customer-OnAfterImportRecord lineno+=1; VALIDATE(“Country Code”,“TmpCountry Code”); IF INSERT THEN logfile.WRITE('Ingevoegd regel: '+FORMAT(lineno)) ELSE IF MODIFY THEN logfile.WRITE('Gewijzigd regel: '+FORMAT(lineno)) ELSE logfile.WRITE('ERROR in regel: '+FORMAT(lineno)); curpos := logfile.POS; logfile.CLOSE; --------------