Hey All, I have a loop within a loop, I can kind of see why it doesn't work becuase I want it to write all lines but it does one then moves onto the next file. Can someone help me figure this out? Thanks!! While 1 Local $file = FileFindNextFile($search) If @error Then ExitLoop Local $CountLines = _FileCountLines($file) _FileWriteToLine($file, ($CountLines), "3", 1) While 1 Local $line = FileReadLine($filer) If @error = -1