The match pattern vi is used in each of the attached vi's. In look for object in file. In finds, HIP 22910 and HR 4796 but not HIP 39 or HIP 5 in the file (also attached) In Objects_Sub.vi, it finds end when its been passed HIP 22910 but when its been passed HR 4796 it outputs until the end of the file.
the problem is that your identifier is not always terminated with a /n. In Look for Object in File, where you append the \n, change that to [\n,\r]+. Then it will be on to your next problem. 🙂
Okay. I added [\n,\r]+. That solved my first problem but not my second problem. Converting eol's didn't help. The \n was added to the Object name to solve another problem in that I was picking up the top line of the file when then program starting running. Blankc were being sent out and matching a blank in the file. (something like that anyway).
because you are only sending out a partial string (IE past match) but you are telling your match pattern to start seaching where the text was originally found in the input string... So in your particular example, you are telling it to start searching past the end of the file after match string! Instead of using that add a + to the end in the match pattern, re-reading this, I do not think I am clear... when you want to find the end of that segment use 'end+' instead of 'end' with an offset and it should find it happily. (remember to remove the single quotes) Now on with the show 😉