I tried the WriteProfileString and it did not work. Can you tell me what I'm doing wrong? The way I need it to work is that if the person's name is not there it must be created or added to the file, its now doing it.

Thanks,

Tom

code:
$FileName = "C:\Data\UserBackup.ini"
$Found = 0
$LineToWrite = "," + %username% + "," + @Date + "," + @Time

OPEN(1, $FileName, 5) ;UserBackup file created to track when users backup.

ReadProfileString ($FileName, "", %username%)
If @ERROR = 0
WriteProfileString ($FileName, "", %username%, $LineToWrite)
$Found = 1
Endif

If $Found = 0
WriteLine (1, "%username%=" + $LineToWrite + @CRLF)
EndIF

Close(1) ;Close UserBackup.csv file

_________________________
Tom Hagen Jr Power comes from the Mind.