Hello I want to increment the [step002] automatically in the .ini file. If the steps are copied and pasted more times in already existing file, where by doing so the step numbers are doubled. For example if there exists [Step002] followed by content of it and then [Step001] and followed by contet of it and [Step002] followed by content of it. And if a person copies [Step002] with its content 80 times or n number of times then the last one should be automatically incremented to new number as [Step003] and [Step004] [Step005]. And then I want to arrange the content under each step. In my file I have a " Group_Start = Step001" and " Group_Name = OQ_004 set high port" as contents in each step. I want to arrange the group name.
What I want is, if in the newly copied [Step002] which would have already been incremented to [Step004], it would contain Group_Name = OQ_004 set high port which I have highlighted in italics, if this already exists some where in the file, then its corresponding Group_Start = Step001 which I have highlighted in italics should be given to the newly copied and incremented [Step004]. And in case the Group_Name = OQ_004 set high port which I have highlighted in italics does not match any where then its corresponding Group_Start will be as Group_Start = Step004. That means since the group name is new and it does not exist already in the file, the Group_Start should take its step number [Step004] which her I have highlighted in italics, as its Group_Start = Step004. Here with I attach my file and I also attach my steps which I had tried. It would be nice if solution is given or further step ideas from my steps to complete the task is given.
Thank you.
John