I need to convert a string from a file that I have into an integer. The string in question is just one number.
L= linecache.getline('data.txt', 1)
L=int(L)
print L
I receive the error:
ValueError: invalid literal for int() with base 10: '\xef\xbb\xbf3\n'
How do I convert this string into an integer?