title: How to a space between each file when concatenating multiple files in Python
body: <p>I was trying to concatenate multiple files, but the last word of the each file combines with the next file's first word. How can i solve this issue?</p>
  <pre><code>import glob
  read_files = glob.glob(&quot;*.txt&quot;)
  with open(r&quot;C:\Users\chii\Downloads\result.txt &quot;, &quot;wb&quot;) as outfile:
  for f in read_files:
      with open(f,&quot;rb&quot;,) as infile:
          outfile.write(infile.read())
  </code></pre>
  <p>`</p>