end-of-file during read

end-of-file during read

Portrait de Rasoul K.

I ahve run my program several times with no problem. Now I am trying to run for a new series of data but I get above mentioned error message.

I am sure I haven't changed the code and regardign the input file, I can't see any change.

Could you please guide me to find the problem.

A screen shot of the error message and relevant location in code is attached.

Read format is 4I5

Fichier attachéTaille
Téléchargement end-of-file.jpg172.18 Ko
5 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
Portrait de Rasoul K.

Please ignore the question.

I put the input data file in a wrong folder?!?

By putting it in the program folder, it runs correctly. Sorry for simple question

Portrait de jimdempseyatthecove

Rasoul,

It is not unusual for a new user to encounter situations like this. Please do not feel embarrassed about asking questions like this on this forum. Use this as a learning experence. I suggest you consider adding the ERR=nnn or IOSTAT=iYourStatVariable to your OPEN statements. This way you can better identify errors like this. Consider what may happen when you copy this application out of your development folder and into your production folder/system. (i.e. you may overlook copying the data files).

Jim Dempsey

Blog: The Parallel Void

www.quickthreadprogramming.com
Portrait de lklawrie

You've opened the file as <Filename>.dat but in Notepad, it shows as <Filename>.dat.txt

You either need to rename it to get rid of the .txt or change your open statement.

Linda
Portrait de John Campbell

Notepad appears to have been improved in Windows 7 and now does not always append .txt to every file name provided.
It is good that some of these past annoyances disappear.

Connectez-vous pour laisser un commentaire.