Add input file reading to solution files

This commit is contained in:
Jake Pullen
2023-11-30 15:02:20 +00:00
parent a8258bcefc
commit e998cfdabb
26 changed files with 107 additions and 1 deletions
+7 -1
View File
@@ -29,4 +29,10 @@ for i in range(1, 26):
# Create the solution file
with open(solution_file_path, "w") as file:
file.write("import os\n\n")
file.write(f"""import os
with open('{input_file_path}', 'r') as file:
input = file.read()
print(input)
""")