Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to read a file in python

# when you want to read the file from terminal in python use 
import sys
f = open(sys.argv[1])
line=f.readline()
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #read #file #python
ADD COMMENT
Topic
Name
4+9 =