Files
StockBackTester/debug_read_current_log.py

9 lines
241 B
Python

with open('current_log.txt','rb') as f:
data=f.read()
print('bytes sample:', data[:200])
s = data.decode('utf-8',errors='replace')
lines = [l for l in s.splitlines() if l.strip()]
for i,l in enumerate(lines[:40]):
print(i, repr(l))