I open a csv file that is an output form a windows CMD command.
I read the csv and assigne a variable, but I can find any word even I'm seeing it.
IT seems to be enconde...
content of output.txt ( Host Name: hostname
OS Name: Microsoft Windows Server 2016 Standard
OS Version: 10.0.14393 N/A Build 14393
OS Manufacturer: Microsoft Corporation)
f = open("output.txt", "rt")
f = f.read()
print(f.find("OS Name"))
OUTPUT
<class 'str'>
-1
print(f)show?