Well you either have to have the "writing" code in the loop, or in an adjacent loop and pass your values to it, or lead the values to the edge of the loop and turn on auto indexing. This will create an array of those numbers (which I assume you expect to be different from the file values), which you can then pass to the code that will "write". So basically you are just trying to create a means to increment the numbers along one axis until you get to the last element, and then index to the next "row" and repeat? Why the file reads, etc.? Why not two nested for loops with the increment amount getting added to itself in each loop? I guess I'm missing something here.
P.M.
PutnamCertified LabVIEW Developer
Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5

LabVIEW Champion