mirror of
https://github.com/BreizhHardware/projetCGroupe8.git
synced 2026-03-18 21:30:32 +01:00
Creation of the printResultInFile function
This commit is contained in:
@@ -258,8 +258,8 @@ void printResultInFile(struct List* result, double time){
|
||||
int length = result->size;
|
||||
for(int i=0; i<length; i++){
|
||||
//Don't supr the last charactere of the category
|
||||
printf("%s\n", inter->movie->category);
|
||||
fprintf(fichier,"%s;%s;%s;%s\n",inter->movie->director,inter->movie->name,inter->movie->time,inter->movie->category);
|
||||
int categoryLength = strlen(inter->movie->category);
|
||||
fprintf(fichier,"%s;%s;%s;%.*s\n",inter->movie->director,inter->movie->name,inter->movie->time,categoryLength,inter->movie->category);
|
||||
inter = inter->next;
|
||||
}
|
||||
fclose(fichier);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
Start testing: Jun 13 11:47 CEST
|
||||
Start testing: Jun 13 11:54 CEST
|
||||
----------------------------------------------------------
|
||||
End testing: Jun 13 11:47 CEST
|
||||
End testing: Jun 13 11:54 CEST
|
||||
|
||||
Binary file not shown.
@@ -17,6 +17,11 @@ function writeFile(id_form,func) {
|
||||
document.body.appendChild(element);
|
||||
element.click();
|
||||
document.body.removeChild(element);
|
||||
while(true){
|
||||
if(readFileByName("../BackEnd/results.txt") !== ""){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// text1.submit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user