I'm terribly sorry, I'm new to all of this.

Code:

#include <stdlib.h>
#include <stdio.h>
int main () {
FILE * in=fopen ("partData.txt", "r");
FILE * out=fopen("report.txt", "w");
int partNum[100];
double price [100];
int quantityS [100];
for (int j=0;j < 100; j++)
fscanf(in, "%d", &partNum[j]);
for (int x=0; x < 100;x++)
fscanf (in, "%d", &price[x]);
for (int z=0; z < 100; z++)
fscanf(in, "%d", quantityS[z]);
fclose(in);
in = fopen ("orders.txt","r");
int a,b,c;
fscanf (in, "%s", &a);
fscanf (in, "%s", &b);
fscanf (in, "%s", &c);
fclose(in);
}
int partNum[100];
int x,y;
void selectionSort (int PartNum[], int size) {
for (x!=0; x <=size; x=x+1){
int smallest = x;
for (int y = x+1; y < size, y=y+1;);
if partNum [y] < partNum [smallest]
smallest=y;
int temp = partNum[smallest];
partNum[smallest] = partNum[x];
partNum[x] = temp;
}
int partNum[100];
int BinarySearch ( int partNum []), int size, int b) {
int lo = 0, hi=size-1;
while (lo <= hi) {
int mid (lo+hi)/2
if (partNum[mid] == b);
return mid;
if (partNum[mid] < b)
lo = mid + 1;
else
hi = mid - 1
}
return -1
}
}