2018-01-31, 11:46
Hi,
I want my addon to be able to read text files on nfs:// and smb:// shares.
For this I need xbmcvfs.File().
So what is the xbmcvfs.File() equivalent of:
Thanks!
PS: I read the sticky, but I don't even know where to start to combine these 2 'open' functions...
I want my addon to be able to read text files on nfs:// and smb:// shares.
For this I need xbmcvfs.File().
So what is the xbmcvfs.File() equivalent of:
python:import io
with io.open('foo.txt', 'r', encoding='utf-8') as fo:
text = fo.read()
Thanks!
PS: I read the sticky, but I don't even know where to start to combine these 2 'open' functions...