Skip to content

Instantly share code, notes, and snippets.

@arnaldoleandro
Created April 3, 2023 10:49
Show Gist options
  • Save arnaldoleandro/9574b27f2f6b8fef634bd8bb07d3be9a to your computer and use it in GitHub Desktop.
Save arnaldoleandro/9574b27f2f6b8fef634bd8bb07d3be9a to your computer and use it in GitHub Desktop.
initial steps
with open(input_file, 'r', encoding='utf-8') as file:
first_line = file.readline()
second_line = file.readline()
header = f"{first_line}{second_line}"
footer = f'</{root_tag}>'
file_number = 1
size = 0
lines_buffer = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment