title: Remove stop words in text file without NLTK
body: <p>I have 2 files: <code>stopwords.txt</code> and <code>a.txt</code><br>
  I want to remove the stop words from file <code>stopwords.txt</code> in file <code>a.txt</code> and separated by white spaces. </p>
  
  <p>How do I do it? This is what I've tried to do:</p>
  
  <pre><code>def remove_stopwords(review_words):
  with open('stopwords.txt') as stopfile:
      stopwords = stopfile.read()
      list = stopwords.split()
      print(list)
      with open('a.txt') as workfile:
          read_data = workfile.read()
          data = read_data.split()
          print(data)
          for word1 in list:
              for word2 in data:
                  if word1 == word2:
                      return data.remove(list)
                      print(remove_Stopwords)
  </code></pre>
  
  <p>Thanks in advance</p>