Hi Richard,
If you have StringTheory then it is easy and fast.
IF ~EXISTS('yourfilename.CSV')
ST.SetValue('Name,Login,Datein,TimeIn'&'<13,10>')
ST.SaveFile('yourfilename.CSV',FALSE)
ST.SetValue(ExpCSV:Label1&','&ExpCSV:Label2&','&ExpCSV:Label3&','&ExpCSV:Label4&'<13,10>')
ST.SaveFile('yourfilename.CSV',TRUE)
ELSE
ST.SetValue(ExpCSV:Label1&','&ExpCSV:Label2&','&ExpCSV:Label3&','&ExpCSV:Label4&'<13,10>')
ST.SaveFile('yourfilename.CSV',TRUE)
END
Not tested and there might be a better and faster way.
Regards
Johan de Klerk