func: static void goodB2G() char * data ; char dataBuffer [ 100 ] = "" ; data = dataBuffer; goodB2GSource ( data ); void goodB2GSource(char * &data) FILE * pFile ; pFile = fopen ( "passwords.txt" , "r" ); if ( pFile != NULL )  if ( fgets ( data , 100 , pFile ) == NULL )  data [ 0 ] = '\0'; data [ 0 ] = '\0'; 