Skip to content
Snippets Groups Projects
Commit c09805b9 authored by Oshani Weerakoon's avatar Oshani Weerakoon
Browse files

Merge branch 'master' of...

parents 3225d6ff ddfc0be0
No related branches found
No related tags found
No related merge requests found
...@@ -117,9 +117,10 @@ def split_into_chunks(input_string, chunk_size=240): ...@@ -117,9 +117,10 @@ def split_into_chunks(input_string, chunk_size=240):
def write_to_file(file_path, content): def write_to_file(file_path, content):
try: try:
with open(file_path, 'w', encoding='utf-8') as file: with open(file_path, 'w', encoding='utf-8', encoding='utf-8') as file:
file.write(content) file.write(content)
print("Successfully wrote to the file: " + file_path) print("Successfully wrote to the file: " + file_path)
print("Successfully wrote to the file: " + file_path)
except Exception as e: except Exception as e:
print(f"An error occurred: {e}") print(f"An error occurred: {e}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment