[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems reading binary files - pointer at 4096 gives EOF



David Fanning wrote:
[...]
> P.S. Just for the record, on Windows machines reading
> binary data, the EOF function can cause weird file pointer
> errors. The work-around is to add the /BINARY keyword to
> the OPENR statement.
> 

... and for the sake of platform independent programming, even Unixers
should
add this keyword (it doesn't hurt). And don't forget to include it if
you are opening F77_UNFORMATTED files.


Martin
-- 
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
[[ Dr. Martin Schultz   Max-Planck-Institut fuer Meteorologie    [[
[[                      Bundesstr. 55, 20146 Hamburg             [[
[[                      phone: +49 40 41173-308                  [[
[[                      fax:   +49 40 41173-298                  [[
[[ martin.schultz@dkrz.de                                        [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[