Using a csv file as an input to create an outputs list

I’m doing a project where I need to generate max deflection value for thousands of beams with different cross sections. So far, I have succeeded in generating this for single beams using Karamba 3D and I was able to export the output as a CSV file.

My question is: If I had a CSV file with thousands of inputs, which I would link to the grasshopper components, would there be a way to cycle through the rows of the CSV file, (in the style of a for loop, for example), and produce a list of corresponding outputs (perhaps to a panel component)? If so, how would I go about creating such a for loop and ensuring that my output doesn’t get overwritten with each iteration?

Thanks in advance
M

I’m sure it’s possible with the native file reader in Grasshopper. It’s straightforward in GHPython in my experience - e.g.:

open(file_path 'rt') as f: 
    for line in f: 
        row_entries = line.split(',')
        # process line or row_entries