Jan-24-2020, 02:35 PM
(Jan-24-2020, 02:31 PM)DeaD_EyE Wrote: Instead of looking up the whole data in memory, you could use an iterative solution: Line by linethey process the file line by line, but as @ThiefOfTime explained, they were consuming 2 lines at a time (one in the loop, next with readline()), but processing just the second one.
the comment about the regex itself is valid though
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs