Stuff
public text v1 · immutable#include <stdio.h>
#include <string.h>
char *BandsFileArr[10];
char *BandsFileVar;
FILE *FileBandsLocation = NULL;
int counter;
int main(void)
{
FileBandsLocation = fopen( "bands.txt", "r" );
if ( FileBandsLocation == NULL )
return 0;
for ( counter = 0; counter < 8; counter++ )
{
if ( fscanf( FileBandsLocation, "%s",&BandsFileVar ) == EOF )
break;
BandsFileArr[ counter ] = BandsFileVar;
printf("\nContents = %c",BandsFileArr[ counter ] );
}
}