Tag Archives: readlines
read(), readline(), readlines() & xreadlines() func in Python
While doing a regression analysis, I had to read & parse through a large .dat file. I called readline() func but was surprised to see that I was actually iterating through every single character in the first line! with open(filePath, ‘r’) as f: for line in f.readline(): print line Then realization dawned upon me! * […]
2
Login