File read is working

created a loop to assign numbers from the text file to the pipe objects