Hi Mark, Actually I tried and solved problem to creating file and memory related issue but while I am trying to create a folder it code hang and if I am trying to generate Text file , it create and I can write/read but I could not create file in Folder . can you hint if need any changes. I am sending below operation for creating folder and file. Please check it.
if(fnDoDisk(DO_CHANGE_DIR,"Test Folder")!=UTFAT_SUCCESS)//open Year Directory
{
fnDebugMsg("\nDir");
fnDoDisk(DO_NEW_DIR"Test Folder");//create Year directory
if(fnDoDisk(DO_CHANGE_DIR,"Test Folder")!=UTFAT_SUCCESS)//open Year
{ return ; //Folder not opened}
}
//------Create File as per Hour and Min
//------Create file for Writing
if(fnDoDisk(DO_NEW_FILE,"Test File.TXT",0,0)==UTFAT_SUCCESS) //open Min text File
{
fnDebugMsg("\nWrite File ");
// fnDoDisk_RTU(DO_WRITE_FILE,"Test File.TXT",&ByteToWrite[0],ByteTolen);
fnDoDisk(DO_WRITE_FILE,FileName1,&ByteToWrite[0],ByteTolen);
}
Thank you
Manish Dabhi