Re: [Discuss-gnuradio] Writing to file from Gnu Radio block

2017-11-24 Thread André Gomes
Hi Marcus! You helped anyway! đŸ˜¬ I tried very quickly to write a file through a python script. It worked even without the close(). So, I assumed everything was fine from a python's perspective... wrong me. It was missing the close() call (even though I called flush() previously and got the same pro

Re: [Discuss-gnuradio] Writing to file from Gnu Radio block

2017-11-24 Thread Marcus MĂ¼ller
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 >

[Discuss-gnuradio] Writing to file from Gnu Radio block

2017-11-24 Thread André Gomes
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