There is a set of data in a text file which is the hourly temperature and rainfall. I wanted to read this data in a particular way in Fortran.
Data in the text file:
Day 1 Hour 1 Temp rain
Day 1 Hour 2 Temp rain
Day 1 Hour 3 Temp rain
...
Day 1 Hour 24 Temp rain
Day 2 Hour 1 Temp rain
Day 2 Hour 2 Temp rain
Day 2 Hour 3 Temp rain
...
Day 2 Hour 24 Temp rain
Day 3 Hour 1 Temp rain
...
.
DO loop1
Read the first 24 hours of data from the text file
{Do some procedures using First 24 hour data}
Read Second 24 hours of data from the text file
{Do some procedures using First 24 hour data}
End DO
I want the next DO loop to work in the following way
DO loop2
Read second 24 hours **(I want to read the Second 24-hour data
again in this loop, how can I read this set again since its once read in loop 1?.**
{Do some procedures using second 24-hour data}
Read the third 24 hours of data from the text file
{Do some procedures using third 24-hour data}
End DO loop2