I would say do not open the "out" file in your get_data() function. It looks like you intend to copy the data into an int array? Anyway, get_data() should just open the data file, read the data, store it for use elsewhere in the program, and close the file.
You can write out to the other file in a separate function. It is much nicer and easier to use a collection of short, simple functions than one long meandering one.
What does the file look like? If you are retrieving scores, I would recommend using fgets() to read line by line, and process the line *inside* the while loop using sscanf() or strtok(). For that, you will need a char "buffer" to read the line into. For example:
Code:
int i=0; /* a counter */
char buffer[1024]; /* should be long enough */
while (fgets(buffer,1024,1,inp)) {
sscanf(buffer, "%d", &ar[i]);