Home In Python, how do I read a file line-by-line into a list?
Reply: 0

In Python, how do I read a file line-by-line into a list?

user198
1#
user198 Published in June 20, 2018, 7:41 am

How do I read every line of a file in Python and store each line as an element in a list?

I want to read the file line by line and append each line to the end of the list.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.572776 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO