Maybe a bit too complex or unique question, but here is my situation: I have a text file “data.txt” that contains millions upon millions of lines. What my goal is to print the first word of every line. But normally this is gonna hours since I can’t load it into my ram.
I have tried to make a pool but that doesn’t seem to work. Also making processes doesn’t seem to work since you can’t use .readlines() yo give it the lines range to work with.
I’m completely lost so any suggestion is us very very welcome