Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Python program to extract characters from various text files and puts them into a list

import glob
ch_list=[]
file_list=glob.glob("*.py")
for file in file_list:
	with open(file,'r') as f:
		ch_list.append(f.read())
print(ch_list)
 
PREVIOUS NEXT
Tagged: #Python #program #extract #characters #text #files #puts #list
ADD COMMENT
Topic
Name
8+7 =