- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
We are converting our applications from CVF6 to IVF11.
There area number of console based exes that read user input from prompts that are presented to the users in the console. Currently the code is reading and writing from Units 5 and 6. However under IVF11, it doesn't seem to understand the
I have been searching the forums and help documentation to see it IVF supports standard unit reads/writes but haven't been able to find difinitive information on it.
Here is a section of sample code that is in question:
write(6,* ) 'Enter Filename'
read(5,15) fileName
15format(a)
write(6,*) 'Filename = ',fileName
If the data is keyed in and
I have found the references to functionslike GETCHARQQor GETSTRINGQQ to get user input. However was still looking to see if IVF would somehow still support the direct reads from unit 5.
Thanks
Dave
- Etiquetas:
- Intel® Fortran Compiler
Enlace copiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
There is no difference between CVF and IVF for standard things such as reading and writing from/to the console. I don't know why
Can you show us a small but complete program that demonstrates the behavior you describe?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Not sure either on the
Here is a very basic sample that will re-create this issue.
We don't ever see it get to the echo of the data entered unless we use
program forRead
implicit none
character*260 fileName
write(6,10)
10 format(1x,'Enter FileName: ',$)
read(5,15) fileName
15 format(a)
write(6,20) fileName
20 format(1x,'FileName entered=', A)
stop
end
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I just tried it using 11.1.054 (Update 4) and it worked normally for me.
C:\Projects>t.exe
Enter FileName: abc.def
FileName entered=abc.def
I just pressed Enter after typing the abc.def. I tried this both from the command line and from within Visual Studio. What prompted you to try using F6?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
I believe we should be using the same version since we had also recently installed the latest update that was published. We also have another base test machine that is at 11.1.035 that also shows this same misbehaviour.
Here is the output from the about.
Intel Visual Fortran Compiler Integration for Microsoft Visual Studio* 2008, 11.1.3469.2008, Copyright (C) 2002-2009 Intel Corporation
Could there be something in the project options that could be impacting this?
The
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Just as a followup this is what we see under execution(WinXP).
The
C:\forRead\Release>forread.exe
Enter FileName: asdf.fdf
^Z
FileName entered=asdf.fdf
Stop - Program terminated.
forrtl: severe (28): CLOSE error, unit 5, file "Unknown"
C:\forread\Release>
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Thanks - this is what I needed. To resolve the problem, right click on the project and select Properties. Then select Fortran > Compatibility. Set the property "Use Other PowerStation Run-Time Behavior" to "No". You may decide to turn off the other PowerStation options unless you know your program needs them.
This is our bug and I will report it to the developers. Thanks for bringing it to our attention.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Just to confirm then that correction included under update 5 should allow us to use the normal unit 5 reads while still having that option set(YES)?
Thanks for all of your help with this issue!
Dave
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
That is my understanding, yes.
Do you need those options?
- 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