Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Input cursor stay the same line?

paramont
Beginner
684 Views
I want to let the cursor stay the same line when I write a sentence on the screen, and wait for the input. However, in CVF 5D, it looks impossible.

Anyway, what I want to do is like:

Write(*,*) 'Please give a file name: '
Read(*,*) File_Name

On the screen, it should look like this:

Please give a file name: _

The last "_" represents the cursor.

right now the cursor always goes to the beginning of next line.

Thanks!
0 Kudos
2 Replies
tmcole
Beginner
684 Views
You will have to use a formatted write with the edit descriptor, e.g.:

write (*,'(a)') 'Please give a filename: '
0 Kudos
paramont
Beginner
684 Views
Thanks!
0 Kudos
Reply