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

Home » Public Forums » archive » Re: Writing Binary data?
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
Re: Writing Binary data? [message #27827] Tue, 06 November 2001 14:52
Dick Jackson is currently offline  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 Go to previous message
David Fanning is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to save the xobjview image into a file IN COLOR ?
Next Topic: Re: FSFC/IDL5.5 installation

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

Current Time: Sat Oct 11 10:31:20 PDT 2025

Total time taken to generate the page: 0.55791 seconds