Before executing a process in an agent I want to open a text file containing nothing but a list of DocIDs and check if the current docid is in the file.
Do I have to loop through the entire file contents row by row looking for the instance or is there some way of doing a FT type Search on the file contents. Basically trying to optimize the process as much as possible and want the quickest way to reliably search for a key in a file?
I think you are going to heave to read the file, however you will only have to do it once. In the beginning of the program, read the file and create a LIST of the document ids. That way you can use the @isElement of the list to see if the doc id was in the file.
Why not store the DocID’s in documents in your database (or any other common database) and use the NotesView.GetDocumentByID command. When it returns a document the DocID was known, else it returns Nothing.