OK, so I am becoming dangerous with this kix32 stuff. My first code is working but I need to tweak it a little. Is there a way to make the Jan-26 change each day to the current days date? I need to run this code each day and would hate to have to open the code up every day to change this date. The code I have written simply parses the existing log file, which is a text file, for the lines that begin with Jan-26 (current date at time of code creation needs to be current date every day) and copy those lines to a new text file so that I can have each days input into the ongoing log, on avg about 50 lines, put into another file leaving the ongoing log intact for further use.If Open(2,"c:\logs\currentlog.txt") = 0
$line = ReadLine(2)
WHILE @ERROR = 0
? "Line read: [" + $line + "]"
If instr($line, "Jan-26") <> 0
WriteLine(1,$Line+$CRLF)
Endif
$line = ReadLine(2)
LOOP
Close (2)
ELSE
BEEP ? "Log file not opened, error code: [" + @ERROR + "]"
EndIf
Chris 
_________________________
Bang that head that doesn't bang!!!