If you want to retrieve this type of data with an iLogic rule, you first need to make the decision mentioned in your first posts, whether the source will be a text file, or an Excel spreadsheet, because the process and code needed to do so will vary greatly for each process. Once you have decided on file type, next decide on how the data will be laid out within that file, because you will need to know when trying to work with it from code. For instance, if you are planning on having a title line/row or column header line/row, then the actual data will be starting on some lower line/row, you will need to know that when attempting to retrieve data from that file, so you don't try to process title or column header data or empty lines/rows as file location data. You will most likely have to set the code up so that when it tries to process a line/row that contains no data, it will exit the rule, so it doesn't continue to run endlessly. Then, you will also need to avoid empty lines/rows in the middle of your list.
Once we know how you plan on specifying file location & name (hard coded, File Open dialog, etc), file type, and how data is laid out within, we may be able to further define the data retrieval portion of the code. Then the printing loop code is fairly basic, as you can see from @Michael.Navara's code.
Wesley Crihfield

(Not an Autodesk Employee)