Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

store in a variable the ocntent of a file python

with open('countries.txt','r') as file:
    countriesStr = file.read()
#######Yes, you can print it like a normal string
 
PREVIOUS NEXT
Tagged: #store #variable #ocntent #file #python
ADD COMMENT
Topic
Name
1+4 =