Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python read text file into string
RAJA RAM
Programming language:
Python
2021-07-06 08:26:14
0
Q:
python read text file into string
Rishabh Pratik
Code:
Python
2021-06-04 11:19:48
with open('data.txt', 'r') as file: data = file.read().replace('\n', '')
2
Tags
string
python
file
text
int
into
read
text file
Related
pdf to text python
python read file and return string
print in text file python
save python output to text file
convert python list to text file
python read text file look for string
python load text file line by line
how to get python to extract information from a text file
reading and writing data in a text file with python
python read text file into a list
open text file in python
how to read and write from a text file in python
python speech to text
python output to text file
pdf to string python
how to read text file in python
python save input to text file
New to Communities?
Join the community