Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

python get file contents as string

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