Reading targets from a text file