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