hi;
I want to save the content of the table of my sqlite database into file (text, or pdf , or csv)
for text file I proceed like that but it was not worked :
I want to save the content of the table of my sqlite database into file (text, or pdf , or csv)
for text file I proceed like that but it was not worked :
def createFileFromLoc35R(self): conn = sqlite3.connect (ils35R.db') curseur=conn.cursor() # loc35R table of the ils35R database : c=curseur.execute("SELECT * FROM loc35R") listeTableLoc35R=c.fetchall() f=open("guru99.txt", "a+") for readData in listeTableLoc35R : f.write(readData) f.write("\n") f.close()