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