Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

os path splitext

import os
basename, ext = os.path.splitext('inputfile.txt')
 
PREVIOUS NEXT
Tagged: #os #path #splitext
ADD COMMENT
Topic
Name
7+9 =