Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to format a file in python

f = open('file.txt', 'r')
for x in f:
    x = x.lstrip()
    x = x.rstrip()
    x = x.title()
    print x
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #format #file #python
ADD COMMENT
Topic
Name
4+7 =