diff --git a/main.c b/main.c
index c10a4785192db6f9cc79fc5c48d5d6ac185c2a65..8d6825c2d1ed8c7ef645879ee70383697f2296dd 100644
--- a/main.c
+++ b/main.c
@@ -26,6 +26,9 @@ int main(int argc, char *argv[])
     Mix_Chunk *sons[3];
     TTF_Font *police;
 
+    FILE* fichier = NULL;
+    fichier = fopen("tab_des_scores.txt", "r+");
+
 
 
 
@@ -236,6 +239,15 @@ int main(int argc, char *argv[])
           }
 
           if(joueur_ptr->vie <= 0){
+
+            int caractereActuel;
+            while (caractereActuel != EOF){
+                caractereActuel = fgetc(fichier);
+            }
+            char score[11];
+            sprintf(score, "Score : %d \n", nbTues);
+            fputs(score, fichier);
+            fclose(fichier);
             gameover = true;
           }
 
diff --git a/tab_des_scores.txt b/tab_des_scores.txt
new file mode 100644
index 0000000000000000000000000000000000000000..2f73a47df8f124f9c9bd06b13149ba522bdf0380
--- /dev/null
+++ b/tab_des_scores.txt
@@ -0,0 +1 @@
+Score : 0