Ok so i use this code to delete $line from a text file   Global $success = False $file_name = "C:\Users\awpclol\Desktop\mon\files\pkaccount.txt" $line_text_input = $line $file_count_lines = _FileCountLines($file_name) for $i = 0 to $file_count_lines     $Lines_text_output = FileReadLine($file_name, $i)     if StringInStr($Lines_text_output, $line_text_input) then         _FileWriteToLine($file_name, $i, "", 1)         $success = True         ExitLoop     EndIf Next if $success = True Then