Reading and writing double floats from binary files
Norbert Lehmann <[email protected]> Tue, 5 Aug 2003 10:44:27 +0200
| Newsgroups | gmane.lisp.corman |
|---|---|
| Message-ID | <a05200f04bb5519e8787d@[134.21.9.36]> |
Hello
I have a file which contains some double floats (8 bytes) and some integer
values (4 bytes). I would like to read these double floats and the integer
values, doing some computation and then finally I would like to write
another file containing again some double floats and some integer values.
Therefore, how can I read double floats and integer values from a file
and how can I write double floats and integer values to a file ?
In CLisp, I have used the functions "read-integer", "read-float",
"write-integer" and "write-float" (see http://clisp.cons.org/impnotes.html for
a description of these functions) for that purpose.
Thanks very much + wish you all a nice day
Norbert
--
\|/
(o o)
+---------------------------oOO--(_)--OOo---------------------------+
Norbert Lehmann
Department of Informatics (DIUF) phone: ++ 41 26 300 83 30
University of Fribourg fax: ++ 41 26 300 97 26
Rue Faucigny 2 e-mail: [email protected]
CH-1700 Fribourg http://www-iiuf.unifr.ch/~lehmann
Switzerland
+-------------------------------------------------------------------+
(_) (_)
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sO0ANB/LIdGAA/ySSFAA/SyjtlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/