Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python file handling

# a file named "geek", will be opened with the reading mode.
file = open('geek.txt', 'r')
# This will print every line one by one in the file
for each in file:
    print (each)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #file #handling
ADD COMMENT
Topic
Name
1+6 =