source/main.c
void fileWrite(char string[])
{
    FILE *BenchmarkResults;
    BenchmarkResults = fopen("Benchmark\\BenchmarkResults.dat", "a");

    if(BenchmarkResults == NULL)
    {
        printf("Error!\n");
        exit(2); //Means that the program has failed to create/open a .dat file to write results.
    }
    else
    {
        fprintf(BenchmarkResults, "----------%s----------\n", string);

        if(strcmp(string, "----------") == 0)
        {
            fprintf(BenchmarkResults, "\n\n");
        }
    }

    fclose(BenchmarkResults);
}
//This function receives a string a writes it at the end of a text file.

This function receives a string a writes it at the end of a text file.
This function receives a string a writes it at the end of a text file .
void fileWrite(char string[])
{
    FILE *BenchmarkResults;
    BenchmarkResults = fopen("Benchmark\\BenchmarkResults.dat", "a");
    if(BenchmarkResults == NULL)
    {
        printf("Error!\n");
        exit(2); 
    }
    else
    {
        fprintf(BenchmarkResults, "----------%s----------\n", string);
        if(strcmp(string, "----------") == 0)
        {
            fprintf(BenchmarkResults, "\n\n");
        }
    }
    fclose(BenchmarkResults);
}
void fileWrite ( char string [ ] ) { FILE * BenchmarkResults ; BenchmarkResults = fopen ( " \\ " , " " ) ; if ( BenchmarkResults == NULL ) { printf ( " \n " ) ; exit ( 2 ) ; } else { fprintf ( BenchmarkResults , " \n " , string ) ; if ( strcmp ( string , " " ) == 0 ) { fprintf ( BenchmarkResults , " \n \n " ) ; } } fclose ( BenchmarkResults ) ; }
This function receives a string a writes it at the end of a text file.
This function receives a string a writes it at the end of a text file .
//Means that the program has failed to create/open a .dat file to write results.
