How do I efficiently read text files with complex multi-line data in Python?
In my search for a suitable solution, I came across various approaches such as numpy.loadtxt or numpy.genfromtxt that seemed promising at first glance, but didn’t work straight-forwardly.