I am trying to search a text file for an item (@wksta). If a matching name is found, I want to exit the script. If the name is not found, I want to add the name (@wksta) to the text file.

I am fairly new to kixtart though I have been using it for a while now. I think I need to use instr() and writeline() but I have not been successful on getting this to work correctly.

Any thoughts? Does anyone have any similar code I could try manipulating to work?

Any help on this will be greatly appreciated.

Thank You