title: writing appending text file from databricks to azure adls gen1
body: <p>I want to write kind of a log file back to azure adls gen1
  I can write (not append) using</p>
  <pre><code>dbutils.fs.put(filename,&quot;random text&quot;)
  </code></pre>
  <p>but i cant append it using</p>
  <pre><code>with open(&quot;/dbfs/mnt/filename.txt&quot;,&quot;a&quot;):
  f.write(&quot;random text&quot;)
  </code></pre>
  <p>it give me error</p>
  <pre><code>1 with  open(&quot;/dbfs/mnt/filename.txt&quot;, &quot;a&quot;) as f:
  ----&gt; 2   f.write(&quot;append values&quot;)
  
  OSError: [Errno 95] Operation not supported
  </code></pre>
  <p>alternatively, i tried using logger.basicconfig(logging.basicConfig(filename='dbfs:/mnt/filename.txt', filemode='w')</p>
  <p>but looks like its not writing into the path.
  can anyone help please</p>