title: Adding spaces between strings in Ruby
body: <pre><code>file = File.new("pastie.rb", "r")
      while (line = file.gets)
         labwords = print line.split.first 
      end
  file.close
  </code></pre>
  
  <p>How do I add spaces between the strings? Right now the output is one giant string. I figure I need to use .join or .inject somehow, but my Ruby syntax skills are poor right now, I am still a  beginner. I also need to skip indented spaces in the files paragraph. But I have no clue how to do that. </p>