title: writing data into fifo file in python
body: <p>I have recorded one audio file and I am converting that file into base64 format.Now I want to write this audio file into a fifo file.
  Code is written below:</p>
  
  <pre><code>import os 
  import base64
  import select
  os.system("mkfifo audio1.fifo")
  with open("audio1.fifo") as fifo:
       select.select([fifo],[],[fifo])
       with open("out1.wav","rb") as audioFile:
           str = base64.b64encode(audioFile.read())
           fifo.write(str)
  </code></pre>
  
  <p>But above code only creating fifo file but not writing anything in it.Plz give any suggestions.</p>