Skip to content

Instantly share code, notes, and snippets.

@sbassi
Created February 23, 2022 23:36
Show Gist options
  • Save sbassi/4dc382b5d405cf2b92e141a6a8ba5c5a to your computer and use it in GitHub Desktop.
Save sbassi/4dc382b5d405cf2b92e141a6a8ba5c5a to your computer and use it in GitHub Desktop.
f_in = 'entrada.txt'
f_out = 'salida.txt'
with open(f_in) as infh:
with open(f_out, 'w') as outfh:
for line in infh:
if line != '\n':
outfh.write(line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment