DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+6 =
Submit