I am trying to input a text file with twenty unsorted names in it into an array and then perform a bubblesort and output to a new file. The filename for the txt file is names.txt
Here is what I have so far....not much...I would appreciate some help the right direction. I have read quite a bit on the subject but it is not quite fitting together in my head yet.
#include<stdio.h>
#include<stdlib.h>
int main (void)
{
FILE *fptr;
fptr1=fopen("names.txt", "r");