Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python open each file in directory

import os
for filename in os.listdir(os.getcwd()):
   with open(os.path.join(os.cwd(), filename), 'r') as f:
 
PREVIOUS NEXT
Tagged: #python #open #file #directory
ADD COMMENT
Topic
Name
1+7 =