Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

lines = paths.read().splitlines()

 pythonCopy>>> filePath = r"/your/file/path"
>>> with open(filePath, 'r', encoding='utf-8') as f:
	f.readlines()

	
['Line One: 1
', 'Line Two: 2
', 'Line Three: 3
', 'Line Four: 4
', 'Line Five: 5']
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #lines
ADD COMMENT
Topic
Name
6+6 =