[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [plt-scheme] Binary file access
Right!
I now do not need v103 anymore. So I update to v200.
Problem is fixed :)
Thanks,
> ---------- Initial message -----------
>
> From : Noel Welsh <noelwelsh@yahoo.com>
> To : Sylvain Beucler
<sylvain.beucler.fac@libertysurf.fr>
> Cc :
> Date : Wed, 29 May 2002 01:39:01 -0700 (PDT)
> Subject : Re: [plt-scheme] Binary file access
>
> --- Sylvain Beucler
> <sylvain.beucler.fac@libertysurf.fr> wrote:
> > The code for binary reading was really
> interesting...
>
> Make sure you test the code. It's written for
> little-endian systems so it may not work if you have a
> big-endian system (from memory so subject to error).
> Alternatively you could switch to using v200; it's
> much nicer.
>
> > I do not need to use float numbers, but I also
> > checked
> > binary-io.c; I noticed though, that the u32_t
> > hv_read_u32
> > function is not complete, and I could not find the
> > datatypes.h file needed for compiling. I am not very
> > good
> > (even bad) using C so maybe I am wrong.
>
> No you're right. It depends on my implementation of
> SRFI-4 for v103.
>
> > Now I just have to make Scheme write to files the
> > same way
>
> Just do the reverse of the read operation. Mask out
> the byte in question and write it as a character. Or
> change to using v200.
>
> Did I mention v200? You should switching to it; it's
> a much nicer system.
>
> Regards,
> Noel
--
Sylvain Beucler
--------------
Profitez des 2 offres exceptionnelles Tiscali !
"Internet Gratuit le Jour" et "Modem ADSL remboursé"
Cliquez ici, http://register.tiscali.fr/forfaits_ls/
Offres soumises à conditions.