diff --git a/RapportInfo2txt b/RapportInfo2txt index d8e84b73ee9e0d96c09e67bcfccc60ae916699d1..bd37a3124325287a72a2514fb3f5b8cd4ff90f05 100755 Binary files a/RapportInfo2txt and b/RapportInfo2txt differ diff --git a/RapportInfo2txt.c b/RapportInfo2txt.c index dabbe55862624b255cfad328f5d3aed2be1548fd..30c0b152f924a5dd1a2ccbf478d74c18d83b0c39 100755 --- a/RapportInfo2txt.c +++ b/RapportInfo2txt.c @@ -40,13 +40,13 @@ typedef struct{ }RAPPORT; int main(int argc, char* argv[]){ - printf("Have you checked rorqual and cacha lensigs and config ?? (needs to match with pic32\'s)"); +// printf("Have you checked rorqual and cacha lensigs and config ?? (needs to match with pic32\'s)"); FILE* infile = fopen(argv[1], "rb"); if(infile==NULL){ printf("Failed to open input file\n"); return 0; } - strcpy(argv[1] + strlen(argv[1])-3, "txt\0"); + strcpy(argv[1] + strlen(argv[1])-4, "txt\0"); FILE* outfile = fopen(argv[1], "w+"); if(outfile==NULL){ printf("Failed to open output file\n"); @@ -54,6 +54,7 @@ int main(int argc, char* argv[]){ } RAPPORT rapport; fread(&rapport, sizeof(RAPPORT), 1, infile); + printf("Writing into %s with %d fin whale pulses and %d sperm whale clicks \n", argv[1], rapport.numDetectionsRorqual, rapport.numDetectionsCachalot); int i, j; fprintf(outfile, "Filename : %s \n", rapport.fileName); fprintf(outfile, "\n rorqual preds\n");