- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
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!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will have to use a formatted write with the edit descriptor, e.g.:
write (*,'(a)') 'Please give a filename: '
write (*,'(a)') 'Please give a filename: '
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page