I am reading several files stored at a particualr location.
There might be 'N' number of files which are ALWAYS named as;
- file01 2)file 02 3)---
10)file10
- file N
Now, I successively open files using;
open(unit=1,
1 file='file01',
2 status='old',
3 form='unformatted',
4 access='direct',
5 recl=512*8)
...do calculations
then open next file
...do calcualtions
..and so on
----
How do I find (before opening a file- say file06) whether it exists or not.
For the first file, the user specifies the file name and location, but it is the program which needs to find whether file02 exists and do coresponding calcualtions.
How could I find before the open statement whether file 02 exists or not?