comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How does one read in simple binary files?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How does one read in simple binary files? [message #5550] Fri, 12 January 1996 00:00
bmac is currently offline  bmac
Messages: 2
Registered: January 1996
Junior Member
This is an incredibly basic question: what's the simplest way
to read in a simple binary file (ie an file of 16384 2-byte integers
representing a 128x128 pixel image, for example), or slightly
more complicated binary files (an array of 16384 IEEE 32-bit reals
with a 100-byte header preceeding the pixel values, for example.)
Are there any standard packages/routines for handling this kind of i/o,
with or without byte and word swapping? All
I can find in the manuals are routines for reading in ascii text, or
various specialized formats, but nothing generic. Does "unformatted i/o"
(readu, etc.) do this sort of input?

Thanks,

Bruce Macintosh
bmac@igpp.llnl.gov
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Conversion of Bruker (BioSpec) data to IDL
Next Topic: Re: EPS printouts from IDL 4.0.1

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 21:50:08 PDT 2025

Total time taken to generate the page: 0.48497 seconds