Well all the things you've named as arrays are not arrays.
Plus, actual arrays need subscripts.
Code:
#include<stdio.h>
#include<string.h>
#define SIZE 120
#define MAX_LEN 20
int main(int argc, char *argv[])
{
char line[MAX_LEN], nameArray[SIZE][MAX_LEN];
int i, age, ageArray[SIZE], counter = 0;
float wage, wageArray[SIZE];
FILE *srcFile;
srcFile = fopen(argv[1], "r");
if (srcFile == NULL) {
printf("Error, no file was opened.\n");
fclose(srcFile);
return (0);
} else {
printf("File was successfully opened.\n");
}
while (fscanf(srcFile, "%s%d%f\n", line, &age, &wage) != EOF) {
strcpy(nameArray[counter],line);
ageArray[counter] = age;
wageArray[counter] = wage;
counter++;
}
for (i = 0; i < counter; i++) {
printf("%s%d%.2f", nameArray[i], ageArray[i], wageArray[i]);
}
printf("\n%d lines", counter);
fclose(srcFile);
return (0);
}