Tag Archives: file

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  

Removing Subversion Control over a file/folder

I use Tortoise Svn as Subversion tool on Windows platform and Subclipse on Linux platform. For some reason, I had to remove the subversion control over a file/folder. The solution: Right click on the file/folder and goto ‘Tortoise SVN>>Export ‘ Then export the file/folder to itself (choose the same file/folder as the export-to file/folder) If […]

2