Re: Writing Binary data? [message #27827] |
Tue, 06 November 2001 14:52 |
Dick Jackson
Messages: 347 Registered: August 1998
|
Senior Member |
|
|
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.16510d8749547d81989752@news.frii.com...
> Spade (arbi_ng_ter@ihug.com.au) writes:
>
>> Hi I want to binary data to file, specifically to PCM wave format
(.wav).
>> I'm not sure how to do it correctly. If i have ascii or some numbers,
how
>> do I write the binary? I've been trying to write the ascii equivelant of
my
>> data to a text file, but If I try and convert the data to a formatted
>> string, the 0's stop the conversion process, so it doesn't work. I can
write
>> the hex to a text file, and convert to binary in another app, but that
is
>> silly! What am I missing?
>
> WriteU.
For your application, would WRITE_WAV not be even easier? (maybe it won't do
the PCM you want)
Cheers,
--
-Dick
Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
|
|
|
Re: Writing Binary data? [message #27852 is a reply to message #27827] |
Mon, 05 November 2001 19:57  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Spade (arbi_ng_ter@ihug.com.au) writes:
> Hi I want to binary data to file, specifically to PCM wave format (.wav).
> I'm not sure how to do it correctly. If i have ascii or some numbers, how
> do I write the binary? I've been trying to write the ascii equivelant of my
> data to a text file, but If I try and convert the data to a formatted
> string, the 0's stop the conversion process, so it doesn't work. I can write
> the hex to a text file, and convert to binary in another app, but that is
> silly! What am I missing?
WriteU.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|