if i use this method to check to see if the file exists, when the file does exist what do i use to load the file contents into an array?Code:int fileIn( char *f ) {
FILE *fd;
if( ( fd = fopen( f, "r" ) ) ) {
/* file exists */
fclose( fd );
return 1;
} else {
/* file doesn't exist */
return 0;
}
}