f = open("cardata.txt", "r"); while(1): l = f.readline(); if(l == ""): break;