Hi André, 

sadly, the info you're giving us is not sufficient to help you. 
Where do you add that code? When do you close that file?

Best regards,
Marcus
On Fri, 2017-11-24 at 12:51 -0200, André Gomes wrote:
> Hi, 
> 
> I have tried to write a file from a Gnu Radio block written in python. The 
> file is created during the open() call however it not written. I have tried 
> examples as simple as that:
> 
> f = open("my_file.txt", 'w');
> f.write("text...text");
> 
> I also found this link. It refers to pmt.write(pmt_t obj, std::ostream port). 
> So, I tried:
> 
> pmt.write(pmt.intern("my text"), f);
> 
> ... no success though. How can I read/write a file from a Gnu Radio block 
> written in python?
> 
> Regards,
> 
> André Gomes
> Email: andre.go...@dcc.ufmg.br
> Homepage: http://homepages.dcc.ufmg.br/~andre.gomes/
> Mobile: +55 31 994859285
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to