i am trying to read in a file. its a two column data. Right when i run this code, at line 5242, i get input conversion error. i am pasting the code here. the file i am trying to read is attached.
integer :: j=0
open (unit=10, file='nacanodes.txt', status='old')
end program readout
Your program assumes that the data is in fixed column positions, but it is not. If the first value in the line is negative, the sign shifts the rest of the text right one column.
You could read this data using a * format (list-directed), assuming that all of the data looked like this. The write should be fine.
I will comment that the data has far more digits than your declaration of default real can represent. Since you are writing the data back out, I'd suggest using real(8) to declare a and b.