- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PARAMETER(NMAXLIG=30000,INFINI=99999999)
character *16 code16
character *80 imp2(NMAXLIG)
c
do i=1,INFINI
READ(5,'(A16)') code16
write(imp2(i)(1:16),'(A16)') code16
if (code16(1:3).eq.'FIN') goto 40
end do
40 do j=1,i
write(40,'(A16)') imp2(j)(1:16)
end do
close(40)
end
cccccccccccccccccccccccccccccccccccccccccccccccccc
write(imp2(i)(1:16),'(A16)') code16
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Message Edited by armelle2 on 11-15-2005 06:16 AM
Message Edited by armelle2 on 11-15-2005 06:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use CVF 6.6b W98SE, and your code worked ok.
Geraldo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Geraldo and steve,
Thank you for your help. I'm happy to know that a solution exist for my problem: Update to 6.6.
Perhaps, a other possibility is to update only the RTL (Run Time Library).
I found two sites hereafter. The cause of my problem is the RTL.
http://www.cs-software.com/software/fortran/compaq/cvf_relnotes.html:
" In some cases, console typeahead input to an application would be corrupted. The underlying cause is a WIN32 bug with reading input from a console. If a user doing typeahead inputs a few characters before the call to ReadFile() (or ReadConsole()) is executed, and then types the rest of his input after (i.e., during) the call, the OS will clobber the input in the receive buffer by the number of bytes requested in the ReadFile() call. This is true for number of bytes requested less than or equal to 40. It works as expected if you ask for at least 41 bytes.
The Fortran rtl was changed at one time to specifically only request 1 byte at a time when reading from stdin. This was done to solve another problem, multiple units sharing a redirected stdin. The solution to the current typeahead problem is to change the Fortran rtl so that 1 byte at a time reads are only done for nonconsole io. The rtl will continue to read 1 byte at a time if stdin is a file or pipe, but not if stdin is specifically the console device. (cvf11307) ".
and for the download of the RTL:
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,7161,00.html
Self-installing executable kit :
- DFORRT.DLL - Visual Fortran non-threaded run-time support
- DFORMD.DLL - Visual Fortran threaded run-time support
- FQWIN.HLP - QuickWin run-time help file
- MSVCRT.DLL - Microsoft Visual C run-time support
- OLEAUT32.DLL - Microsoft OLE Automation
- OLEPRO32.DLL - Microsoft OLE Automation
- STDOLE32.TLB - Microsoft OLE Automation
Can I install the kit VFRUN66BI.exe (new dll DFORMD and DFORRT with corrections) for my version 6.1 ? (because VFRUN61I.exehas againthe same bug).
Armelle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Message Edited by armelle2 on 11-16-2005 08:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page