Tool/software: TI C/C++ Compiler
Hello,
I work around Tiva C 1294 launchpad and SD card for a project of data-logger. General overview of my SD card operation is like below:
iFResult = f_mount(0, &g_sFatFs);
if(iFResult != FR_OK)
{
// UARTprintf("f_mount error: %s\n", StringFromFResult(iFResult));
return(1);
}
iFResult = f_open(&g_sFileObject, "a.txt", FA_CREATE_NEW);
The thing I want to try is change "a.txt" to a dynamic file name which can be changed during run-time.
Problem is the f_open accepts only 'const TCHAR' datatype, how can be this achieved?
Example of file name every day i wish to add according to time : May1st.csv , May2st.csv etc