Arduino write data - serial

Looks like you are almost there?

Above Processing setup, declare an array of Strings, and an int to keep track of which one you’ve sent.
In your Processing setup(), copy in the loadStrings example, and load your file into that array.
In draw() where you detect ‘position_reached_ok’ write one of the array strings to the Ard.

Does that do it?