8 lines
219 B
Python
8 lines
219 B
Python
path = "static/js/backtest.js"
|
|
with open(path, "r", encoding="utf-8") as f:
|
|
text = f.read()
|
|
print(f"Read {len(text)} chars")
|
|
with open(path + ".tmp", "w", encoding="utf-8") as f:
|
|
f.write(text)
|
|
print("Write OK")
|