Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python read file to variable

with open('data.txt', 'r') as file:
    data = file.read().replace('
', '')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #read #file #variable
ADD COMMENT
Topic
Name
8+8 =