I normally use microsoft visual studio on Microsoft. However, I will have to use xcode on mac osx from now on. I am not able to read data from a .dat file. I normally use the following code:
1000 format(' ','The input file name is: ',A)
open(unit=3, file=filename, status='old', action='read',&
if (st1.eq.0) exit
When I use the code above, it gives me the following error:
Error opening file: IOSTAT = 29
I don't think .dat files are compatible with MAC. What should I use then? I have so much data in the input file. It might be difficult to read it all if I change the extension of my input file.