Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python load a txt file and assign a variable

with open('your_text_file.txt', 'r') as f:
    username = f.readline()
    password = f.readline()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #load #txt #file #assign #variable
ADD COMMENT
Topic
Name
1+6 =