title: How to get files written by the micro:bit to the PC?
body: <p>I am new to BBC micro:bit, so I have the following Problem:</p>
  
  <p>I want to read movements and write it to a file on the m:b and after all I want to download it from there to the pc to work on it.</p>
  
  <p>I wrote the file like that:</p>
  
  <pre><code>from microbit import *
  
  with open('FileName.txt', 'w') as my_file:
      my_file.write('text to write down')
  </code></pre>
  
  <p>I couldn't see the file, when I used the m:b as USB- device.
  But when I programmed the m:b to list all files it wrote short before the file was on it.</p>
  
  <p>I know, m:b has no disk operating System, so I tried to pull it with python code, I started the following python code on a Windows pc:
  (see: <a href="https://microfs.readthedocs.io/en/latest/" rel="nofollow noreferrer">Docs to microfs</a>)</p>
  
  <pre><code>import microfs
  print microfs.ls()
  </code></pre>
  
  <p>But I got the error <strong>IOError: Could not find micro:bit.</strong></p>
  
  <p>The m:b is not found, I suppose.
  What am I doing wrong? What else could I try?</p>