I think there is a problem with how the IFS is being used here  Should it be opening the file then reading each line?