- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

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