Reg : difference between gr.file_descriptor_source/sink and gr.file_source/sink

Q: What is the difference between gr.file_descriptor_source/sink and
gr.file_source/sink … I mean when shall we prefer one over other ?


View this message in context:
http://gnuradio.4.n7.nabble.com/Reg-difference-between-gr-file-descriptor-source-sink-and-gr-file-source-sink-tp37991.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On Sun, Oct 14, 2012 at 10:18 AM, sumitstop
[email protected] wrote:

Q: What is the difference between gr.file_descriptor_source/sink and
gr.file_source/sink … I mean when shall we prefer one over other ?

file_source/sink takes in a string for a file name. This block will
create a new file with that name.

file_descriptor_source/sink takes in a file descriptor and writes to
that. This means you create your file descriptor externally and pass
it to the block. The file descriptor can be anything, now, an actual
file, FIFO, device, etc.

Tom

Thanks Tom … got it !!


View this message in context:
http://gnuradio.4.n7.nabble.com/Reg-difference-between-gr-file-descriptor-source-sink-and-gr-file-source-sink-tp37991p38015.html
Sent from the GnuRadio mailing list archive at Nabble.com.