title: how to read data line by line in python
body: <p>I have a textfile  which is filled with data like follows:</p>
  
  <pre><code>#n
  44026533495303941500076737402297403862946691
  
  #e
  6969696
  
  #f
  37243759787836627691897628674719248256836857
  </code></pre>
  
  <p>In the end, I want to know the numbers saved with the variables n, e, f</p>
  
  <p>I tried to read it line by line, but the datastream  gives me only letter by letter 
  My code was following:</p>
  
  <pre><code>file = open(sys.argv[2]).read() # for getting file
  for line  in file:
      print(line)   # but it gives letter for letter
  </code></pre>
  
  <p>My idea was to take for example </p>
  
  <pre><code>n = file[1]
  e = file[5]
  </code></pre>