Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

How to convert each file rung to an item in a list?

Hi. I need the program to read a text document every time I find a jump line (\ n), convert the text read before the line break into an element of a list.

With the function "split" does not work because it converts each word into a list item and that's not what I need, I need each row to be a list item.

Does anyone know any method or regular expression to do it?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by lans.007Apr 10, 2021 12:43 PM 5 265 Apr 10, 2021 12:43 PM
Last Post: Exploit-Tool
[Shell] by Emre_Aug 23, 2019 05:57 AM 0 93 Aug 23, 2019 05:57 AM
Last Post: Emre_
[Shell] by Emre_Jan 28, 2019 04:13 AM 0 153 Jan 28, 2019 04:13 AM
Last Post: Emre_