Posts filed under “intermediate”

Compare Two Files with Python

Recently I had some old code and a newer version of those same files.  I couldn’t just use one of them, deleting any changes made in the other.  I had to know what’d changed in each file.

Change Line Endings (Windows, UNIX, MacOS)

End Of Lines Have you ever opened a text file on your Windows computer and had it be all one line? It happens to me quite frequently. The problems this causes can range from making you constantly scroll right, to having a program that can’t even read it. To solve this, we’ll write a script [...]