Hello,

    While I'm finding the "Gentle Tutorial" and "The Report" to be fairly
easy to follow in general, I am having trouble figuring out how to read
binary files in and out of Haskell programs.  I didn't see any relevant
examples in the progs/demo directory.  Could someone please send me some
simple concrete examples?

    Specifically, there are two types of files I would like to read.  The
first kind of file is a speech waveform data file, which is stored as a
binary file, with the samples stored as "signed short int".  Can Haskell
read a stream of "signed short int" or do I have to insert a translation
program?  The second kind of file is a feature vector file to be sent to a
pattern classifier.  That file is a binary file of fixed-length
floating-point records, one feature vector after another.

    It seems like Haskell will be a great tool for prototyping signal
processing and pattern recognition algorithms, once I can get data in and
out efficiently.

    Thanks.


David M. Goblirsch, The MITRE Corporation, McLean VA 22102
[EMAIL PROTECTED], (703) 883-5450



Reply via email to