int mode = ios::out | ios::trunc | ios::binary;
int mode = ios::out | ios::trunc; if (!is_text) mode |= ios::binary;
void U7open	(	std::ofstream& out,			// Output stream to open.	const char *fname			// May be converted to upper-case.	){#ifdef MACOS	std::ios_base::openmode mode = std::ios::out | std::ios::trunc | std::ios::binary;#elif defined(XWIN)	int mode = ios::out | ios::trunc;#else	int mode = ios::out | ios::trunc | ios::binary;#endif	string name = get_system_path(fname);	out.open(name.c_str(), mode);		// Try to open original name.	if (!out.good())		// No good?  Try upper-case.	{		to_uppercase(name);		out.open(name.c_str(), mode);		if (!out.good())			throw file_open_exception(name);	}}