reading sections from a large text file in python efficiently
问题 I have a large text file containing several million lines of data. The very first column contains position coordinates. I need to create another file from this original data, but that only contains specified non-contiguous intervals based on the position coordinates. I have another file containing the coordinates for each interval. For instance, my original file is in a format similar to this: Position Data1 Data2 Data3 Data4 55 a b c d 63 a b c d 68 a b c d 73 a b c d 75 a b c d 82 a b c d