Right so I asked here how I can sort my c file, and this was the coded response I created.
#include <stdio.h>
#include <conio.h>
int main()
{
FILE *fN;
FILE *fS;
fN=fopen("Numbers.txt","r");
fS=fopen("Sorted.txt","w");
system("sort Numbers.txt > Sorted.txt");
getch();
fclose(fS);
fclose(fN);
}
This always comes up with the same error message: The process cannot access the file because it is being used by another process.
does this mean I show change the libraries?, I'm really confused to why there is an error.
See Question&Answers more detail:os