All pastes #443738 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-16 23:20 UTC
rendered paste body
#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 ] );
	}

}