title: How to give a linebreak in Python writing to a file in UTF-16 BE?
body: <p>I am trying to get data from a list of files and paste it into a single text file called <code>list.txt</code></p>
  <pre><code>arab_name = &quot;&quot;
  
  for i in range (len(txts)):
      with open('C:\\Users\\Malik\\Desktop\\ARABIC_WORDS\\Animals\\' + txts[i]) as f:
          s = f.read()
          arab_name += s + '\n'
  
  f = open(&quot;list.txt&quot;, &quot;x&quot;)
  f.write(arab_name)
  </code></pre>
  <p>The resulting text file has strange characters show up in the text file instead of a line break?
  <code>arab_name += s + '\n'</code>
  How do I fix this? Thanks</p>