title: How do I read a text file as a string?
body: <p>Below are the codes I have tried to read the text in the text file in a method called <code>check_keyword()</code></p>
  
  <pre><code>def check_keyword():
      with open(unknown.txt, "r") as text_file:
          unknown = text_file.readlines()
  
      return unknown
  </code></pre>
  
  <p>This is how i called the method:</p>
  
  <pre><code>dataanalysis.category_analysis.check_keyword()
  </code></pre>
  
  <p>The text in the text file:</p>
  
  <pre><code>Hello this is a new text file 
  </code></pre>
  
  <p>There is no output for the method above :(( </p>