Howdy, fairly new to FTN95 so excuse me if what I'm after is ridiculously simple.
I've got a list of data, (*.dat file) that I'm inputting into my code, 210 lines long. The data is subdivided into a few different areas but basically I want to extract every 5th line. So, 1st,6th,11th... and 2nd,7th,12th...etc. I've managed to input the data and be able to recall any particular value and work out averages of the entire data (which in fact is useless) but cannot for the life of me figure out a way to sum (for example) every 5th line to make the data useful. Any input is much appreciated (excuse the pun!)
Regards, Rich.
I've got a list of data, (*.dat file) that I'm inputting into my code, 210 lines long. The data is subdivided into a few different areas but basically I want to extract every 5th line. So, 1st,6th,11th... and 2nd,7th,12th...etc. I've managed to input the data and be able to recall any particular value and work out averages of the entire data (which in fact is useless) but cannot for the life of me figure out a way to sum (for example) every 5th line to make the data useful. Any input is much appreciated (excuse the pun!)
Regards, Rich.