Rotates a file so that lines become columns and vice versa