[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] How can I read byte by byte from a file and send
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] How can I read byte by byte from a file and send it to input stream of a block. |
Date: |
Mon, 29 Dec 2008 06:35:10 -0800 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Mon, Dec 29, 2008 at 03:48:15AM -0600, Mir Ali wrote:
> Hi,
> I want to read a byte from a file and send it to an input stream. Each time
> I read one byte from the file i want to send it onto the input stream of a
> particular block and then read the next byte and do the same. I looked at
> gr.message_source() which does similar work to what I need. But I see that
> when we use gr.message_from_string(databyte) and then do
> msgq().insert_tail(msg) we add some more information to the data byte. I
> just want to send the particular byte read onto the stream. How can I do
> this?
>
> Thanks
> Ali
gr.file_source(gr.sizeof_char, "/path/to/my/file")