|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] File sink Reading issue |
Date: | Fri, 21 Apr 2017 15:27:20 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Dear Jahnavendra,
first of all: please avoid cross-posting if not really necessary. this is a GNU Radio, not a USRP-users problem. Also, I'm absolutely not sure what I *personally* have to do with that, and thus, why I'm in there in the personal To: lines (or why Juha and Lars and Nate are) but oh well, since I also am on both mailing list:
file contains i think ascii charactersNo, it doesn't. Not at all! I've already linked to the relevant FAQ entry, I'll happily do that again: https://wiki.gnuradio.org/index.php/FAQ#What_is_the_file_format_of_a_file_sink.3F_How_can_I_read_files_produced_by_a_file_sink.3F So, this is simply plain raw binary data, and not ASCII at all. The FAQ entry has source code that shows how to read these things, e.g. from Matlab/octave and python. In C and C++, and many other languages, reading raw data is just as easy; in fact, the functions are often even called the same (fread). Best regards, Marcus On 04/21/2017 07:30 AM, M.JAHNAVENDRA
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |