;***************************** ;* RoboTask Task file ;* Do not edit in text editor! ;***************************** [Root] ActionAfterRun=INTEGER|0 Actions=FOLDER Automat=INTEGER|-1 CatID=INTEGER|1380072790 Comment=STRINGLIST ContinueOnError=INTEGER|0 ExternalName=STRING|"Task1140" Hide=INTEGER|0 ID=INTEGER|1120431119 LocalVariables=STRING|"cline,newtext,filename,pos" LogOnAsUser=INTEGER|1 Name=STRING|"Delete certain lines from text" OnErrorTaskID=INTEGER|0 Priority=INTEGER|3 RunOnClose=INTEGER|0 RunOnStartup=INTEGER|0 ToLog=INTEGER|3 WriteGeneralLog=INTEGER|0 [Actions] Action1=FOLDER Action10=FOLDER Action2=FOLDER Action3=FOLDER Action4=FOLDER Action5=FOLDER Action6=FOLDER Action7=FOLDER Action8=FOLDER Action9=FOLDER [Actions\Action1] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""NEWTEXT"" with value """"" Params=FOLDER [Actions\Action1\Params] expand=STRING|"0" varname=STRING|"NEWTEXT" [Actions\Action10] ActionID=STRING|"A_FILE_TEXTWRITE" Enabled=INTEGER|-1 Name=STRING|"Create text file {filename}" Params=FOLDER [Actions\Action10\Params] fileexists=STRING|"0" filname=STRING|"{filename}" line0=STRING|"{newtext}" linecount=STRING|"1" suppress=STRING|"1" [Actions\Action2] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""FILENAME"" with value ""C:\incoming\sample.txt""" Params=FOLDER [Actions\Action2\Params] expand=STRING|"0" varname=STRING|"FILENAME" varvalue=STRING|"C:\incoming\sample.txt" [Actions\Action3] ActionID=STRING|"A_LOOP_TEXT" Enabled=INTEGER|-1 Name=STRING|"Text Loop" Params=FOLDER [Actions\Action3\Params] destvar=STRING|"CLINE" file=STRING|"{filename}" linecount=STRING|"0" sourcetext=STRING|"0" [Actions\Action4] ActionID=STRING|"A_STR_POS" Enabled=INTEGER|-1 Name=STRING|"STR Pos" Params=FOLDER [Actions\Action4\Params] case=STRING|"0" from=STRING|"1" search=STRING|"some text" source=STRING|"{cline}" variable=STRING|"pos" [Actions\Action5] ActionID=STRING|"A_FLOW_IF" Enabled=INTEGER|-1 Name=STRING|"If Then" Params=FOLDER [Actions\Action5\Params] case=STRING|"0" operator=STRING|"0" type=STRING|"1" value1=STRING|"{pos}" value2=STRING|"1" [Actions\Action6] ActionID=STRING|"A_LOOP_CONTINUE" Enabled=INTEGER|-1 Name=STRING|"Continue" [Actions\Action7] ActionID=STRING|"A_FLOW_ENDIF" Enabled=INTEGER|-1 Name=STRING|"End If" [Actions\Action8] ActionID=STRING|"A_VARIABLES_SET" Enabled=INTEGER|-1 Name=STRING|"Set variable ""NEWTEXT"" with value ""{newtext}{cline}{eol}""" Params=FOLDER [Actions\Action8\Params] expand=STRING|"1" varname=STRING|"NEWTEXT" varvalue=STRING|"{newtext}{cline}{eol}" [Actions\Action9] ActionID=STRING|"A_LOOP_END" Enabled=INTEGER|-1 Name=STRING|"End Loop" [\Comment] s1=You should rewrite all text in the loop and miss certain lines