Hi, i am a little bit newbie in programming python. I have this problem:
I want to python give me the max value (integer) of a directory folder, the files are with .txt extension . For example i have this path:
![[Image: GcJXNgS.png]](https://i.imgur.com/GcJXNgS.png)
inside the hghg folder there are this files
![[Image: Qwz6B5E.png]](https://i.imgur.com/Qwz6B5E.png)
I want python give me the highest number of the file without (22)
the result in this case will be 39 because is de highest number but i cant get it
all the codes I tried failed. Can you help me with this task?
Sorry for my english.
regards
I want to python give me the max value (integer) of a directory folder, the files are with .txt extension . For example i have this path:
![[Image: GcJXNgS.png]](https://i.imgur.com/GcJXNgS.png)
inside the hghg folder there are this files
![[Image: Qwz6B5E.png]](https://i.imgur.com/Qwz6B5E.png)
I want python give me the highest number of the file without (22)
the result in this case will be 39 because is de highest number but i cant get it
all the codes I tried failed. Can you help me with this task?
Sorry for my english.
regards