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; } }



LinkBack URL
About LinkBacks



fstream for output. They're much easier to work with (in my opinion, of course
I've never tried FILE's)