I'm opening texturepacks for my game and am holding filenames in a table, however when I use os.listdir() it returns the filenames with the extensions. Is there a way I could remove all characters after the dot that marks the file extension?
Example: Change 'Body.png'
into 'Body'
or 'Head.jpeg'
into 'Head'
Thanks!