- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
my fortran program stops with no run-time error while reading a file. the read is in a do-loop so I open the txt file-read-close the fileat every iteration while in the do. It does it for approximately 75000 times, and then if certain conditions are true, it starts again. The program stops after the 17000 time with no appartent reason (it should stop after the 75000th time). I have been programming on a daily basis for the past 5 five years, so I promise I have tried a lot of things.
The last thing I can think of is that there might be alimit on the txt file, or on the amount of times that it can be opened and closed?It doesn't make much sense but....Can I track the mistake somehow if I have no run-time error?
PS. there is no lnk warning either.
Thanks in advanced.
Dan
- Etiquetas:
- Intel® Fortran Compiler
Enlace copiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Why don't you leave the file open and do a REWIND to reread it instead? You'll save a lot of work on behalf of the I/O system.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
The compiler is Compaq Visual Fortran Version 6.6.
Thanks
Dan
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla