Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python apply file line

with open(filename) as f:
    content = f.readlines()
# you may also want to remove whitespace characters like `
` at the end of each line
content = [x.strip() for x in content] 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #apply #file #line
ADD COMMENT
Topic
Name
7+1 =