Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. from functools import partial
  2.  
  3. REGISTROS_A_LEER = 5
  4.  
  5. with open('fibonaccis.txt', 'rb') as f:
  6.     registros = iter(partial(f.read, REGISTROS_A_LEER), b'')
  7.  
  8.     for registro in registros:
  9.         print(registro)