From the log file I need the last lines. I listed them in [-1:-7]
f_read = open("C:\logs.txt", "r")
status = f_read.readlines()[-1:-7]
print(status)
Python outputs
[]
How can I make it show strings?
From the log file I need the last lines. I listed them in [-1:-7]
f_read = open("C:\logs.txt", "r")
status = f_read.readlines()[-1:-7]
print(status)
Python outputs
[]
How can I make it show strings?