Created
April 3, 2023 10:49
-
-
Save arnaldoleandro/9574b27f2f6b8fef634bd8bb07d3be9a to your computer and use it in GitHub Desktop.
initial steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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