Feeders: Incrementing line to be read from feeder file

HI, I have a class with two scenarions and one feeder file with 2 lines of data. Now, I want scenario1 to only consume line1 from feeder and then scenario2 to consume line2. Can I do that in Scala?
I do not want to have a separate feeder file for each scenario in my class. Rather have one CSV with different data for each scenario. The headers in the CSV will stay the same, just different values in each row.

Thank you so much for helping out!


With Gatling 2:

val feeder = csv(“foo”)
val record1 = feeder.data(0)
val record2 = feeder.data(1)

exec(session => session.setAll(record1))