When using TCHAR there is generic data types tchar, generic string functions like _tcs and also _T/_TEXT. Are there any generic file I/O functions that switches between fopen/fwopen fwrite/fwwrite etc...based on UNICODE preprocessor definition?
In addition, a related question is when using swprintf or wprintf or fwprintf, how does one address the format specifier like "%s"? I do not see a generic mapping layer like _T for this. How is this problem addressed?