Lines Matching defs:file
619 FILE* file = fopen( filename.c_str(), "r" );
621 if ( file )
623 // Get the file size, so we can pre-allocate the string. HUGE speed impact.
625 fseek( file, 0, SEEK_END );
626 length = ftell( file );
627 fseek( file, 0, SEEK_SET );
629 // If we have a file, assume it is all one big XML file, and read it in.
630 // The document parser may decide the document ends sooner than the entire file, however.
637 while( fgets( buf, BUF_SIZE, file ) )
641 fclose( file );