1

Editing a kodi plugin at the moment and trying to solve to print out a specific txt-file with python.

There is a txt located on another folder containting: build021.7.0

I want to be able to print out the version number.

How can this be done?

Would really appreciate some help!

Thanks!

/Martin

  • Is the version number part of the file, the whole file or part of the filename? – JohanL May 13 '17 at 18:52
  • I think `os.listdir` would help your case : https://docs.python.org/2/library/os.html#os.listdir – JacobIRR May 13 '17 at 18:55
  • The file is called version.txt containing < build >build02< / build> < version >1.7.0< / version > – Martin Hult May 13 '17 at 18:55
  • Have to say that I don't understand a thing about python. Would really like you guys who knows to print out a code for me if that's possible? – Martin Hult May 13 '17 at 18:56
  • And I would really want a million dollars but Stack Overflow isn't the place to ask for either that or for someone else to do the work for you! – JohanL May 13 '17 at 19:30

0 Answers0