Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Reading Custom Delimited file in python

f= open("f.txt",mode='r',encoding='utf8', newline='
')

# use enumerate to show that second line is read as a whole
for i, line in enumerate(fd):   
    print(i, line)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Reading #Custom #Delimited #file #python
ADD COMMENT
Topic
Name
2+7 =