@@ -0,0 +1,792 @@
+import petlib.pack%0Aimport csv%0A%0Adef readInFile(filename):%0A%09try:%0A%09%09with open(filename, 'rb') as infile:%0A%09%09%09lines = infile.readlines()%0A%09%09for l in lines:%0A%09%09%09#print petlib.pack.decode(l%5B:-1%5D)%0A%09%09%09print l%0A%09%09print len(lines)%0A%09except Exception, e:%0A%09%09print %22Error: %22, str(e)%0A%0Adef getProvidersNames():%0A    filedir = 'providersNames.bi2'%0A    with open(filedir, %22rb%22) as infile:%0A        lines = petlib.pack.decode(infile.read())%0A    return lines%0A%0Adef writeCSV():%0A%09with open('file.csv', 'ab') as infile:%0A%09%09csvW = csv.writer(infile, delimiter=',')%0A%09%09data = %5B%5B'A', 34%5D, %5B'B', 45%5D, %5B'C', 90%5D%5D%0A%09%09csvW.writerows(data)%0A%0Adef readCSV():%0A%09with open('file.csv', 'rb') as infile:%0A%09%09csvR = csv.reader(infile)%0A%09%09for row in csvR:%0A%09%09%09print row%0A%0Aif __name__ == %22__main__%22:%0A%09print getProvidersNames()%0A%09writeCSV()%0A%09readCSV()

Support file