Hi,
In my program, at some point, I ask the user if they want to continue.
I write out the usual: Do you want to continue? [y/N]
If they just press enter, without a 'y' or 'N', I'd like the program to use a
default. But, if I just use
READ(5,FMT='(A1)') user_option
and the user pushes enter, the program waits for more input.
I thought there might be an IOSTAT parameter that I could catch, or something
similar, but I can't find any.
Does anyone know how to accomplish this?
Thanks
|