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

rewrite statement in Visual Fortran NET

alcala
Beginner
481 Views
Hi
The compiler dosn't accept my code with rewrite statement. I think there could be a problem in rewriting record in different type (c - real, linia - character*256). Am I write?
regards
Alcala
Code:
do while (pol>0)
 open(5,file='poloz.dat')
 read(5,*,END=10)c,linia
 number = number + 1
 pol = scan(linia,' ')
 linia = adjustl(linia)
 rewrite(5,*,ERR = 10)linia
 close (5)
end do 
0 Kudos
1 Reply
Steven_L_Intel1
Employee
481 Views
REWRITE is not supported for list-directed formatting. Also, in order to use it effectively, the new record has to be the same length as the old one.
0 Kudos
Reply