title: save the text value of the file
body: <p>I have a problem. I want to make a login and password in an impromptu program. How do I store the text value of a variable. I ask questions do not ask me I am a Russian-speaking. Piece of code:</p>
  <pre><code>import os
  print(&quot;login:&quot;)
  logg=input(&quot;&gt;&quot;)
  print(&quot;password:&quot;)
  pasw=input(&quot;&gt;&quot;)
  if logg==rlogg or pasw==rpasw:
    &lt;&lt;body programm&gt;&gt;
  else:
    &lt;&lt;body programm&gt;&gt;
  </code></pre>
  <p>I need to assign the rlogg and rpasw variables to their values ​​in the file. And after that, if the values ​​that were entered in logg and pasw are equal to rlogg and rpasw, then the program continues, if not, then the program is restarted.</p>