Re: writing to binary




I interpreted "binary" just as unformatted.
So, if you want sort of "stream" do the following:

integer*2 i
i=17
open(unit=21,file='test.dat',access = "direct",
form='unformatted',recl=2)
do j = 1, 1000
write(unit=21, rec = i) i
enddo
close(unit=21)
end

[JvO]

.



Relevant Pages

  • Re: check this one
    ... you can troll your boat down another stream.. ... Prev by Date: ...
    (rec.motorcycles.harley)
  • Re: check this one / attn: "Becky"
    ... > you can troll your boat down another stream.. ... I owe ya a few, ... Prev by Date: ...
    (rec.motorcycles.harley)
  • Re: do I use fopen or fsockopen to get an image as a stream of bytes?
    ... Andy Hassall wrote: ... >>How do I get an image like that, as a stream of bytes? ... I notice that IE renders the image as an image, when I echo just the ... Prev by Date: ...
    (comp.lang.php)
  • Testing Webcam/mic
    ... WMP URL http://172.200.33.70:1219/ ... How does it stream (sound) at your end? ... Prev by Date: ...
    (microsoft.public.windowsmedia.encoder)
  • WFUV right now- Lennon
    ... Lennon, including the original 12/8/80 WNEW broadcasts. ... stream it on wfuv.com ... Prev by Date: ...
    (rec.music.artists.springsteen)