FAT FILES/Directories

Dear friends,

I am trying to manage a file within a directory but I am having a many troubles. It seems like I cannot dertermine wether or not to use the fat_OpenDir ok use de full path in the filename.

This is the code I am trying to use to delete de file dir.log from de config directory.

int save_dir(char* buffer){
int i, rc;
char filename[256];
fat_part *particion;
strcpy(filename,“dir.log”);
rc=0;
rc = fat_AutoMount(FDDF_USE_DEFAULT);
particion=fat_part_mounted[0];
rc=fat_OpenDir( particion, “/A/config/”, dir );
rc=fat_Delete( particion, FAT_FILE, filename);

I would be gratefull if someone could help me.

THK