if (is_text_file(fname)) mode = "r";
bool text; if (text = is_text_file(fname)) mode = "r";
long get_file_size(const char *fname){	char *mode = "rb";	if (is_text_file(fname)) mode = "r";	FILE *fp = U7open (fname, mode);	if (!fp) {		cerr << "Could not open file " << fname << endl;		exit(1);	}	fseek(fp, 0, SEEK_END);	long len = ftell(fp);	fclose(fp);	return len;}