Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi All,
I am creating an application which will create a directory(folder) and in that i have to copy a mp3 files from some other folders.
i am able to create a directory but i dont know how to copy or move a file from one folder to other :confused: . can anyone please help me in this.

thanks in advance
veekay

You can use IFile and IFileMgr APIs for this.
1.read mp3 file in buffer.(IFILE_Read)
2.create new file in ur folder (IFILEMGR_OpenFile)
3. write to new file from buffer (IFILE_Write)
4. close the file.
See SDK API reffor details.

You can use IFile and IFileMgr APIs for this.
1.read mp3 file in buffer.(IFILE_Read)
2.create new file in ur folder (IFILEMGR_OpenFile)
3. write to new file from buffer (IFILE_Write)
4. close the file.
See SDK API reffor details.

thanks adhudase,
now my function has to return the name of the file present in the directory.
i know IFILEMGR_GetInfo() will give the information of the file we specify but i want the name of the file present in the directory(folder). and once i return the name of the first file it has to point to the next file in the folder.
waiting for the reply
thanx

thanks adhudase,
now my function has to return the name of the file present in the directory.
i know IFILEMGR_GetInfo() will give the information of the file we specify but i want the name of the file present in the directory(folder). and once i return the name of the first file it has to point to the next file in the folder.
waiting for the reply
thanx

Hey its working for me. its simple to retrieve the name of the file in the folder.
we gotto use just these steps
IFILEMGR_EnumInit(pMe->m_pIFileMgr,"media", FALSE);
IFILEMGR_EnumNext(pMe->m_pIFileMgr, &pMe->fi);
szBuffer=pMe->fi.szName;
veekay.

Hey its working for me. its simple to retrieve the name of the file in the folder.
we gotto use just these steps
IFILEMGR_EnumInit(pMe->m_pIFileMgr,"media", FALSE);
IFILEMGR_EnumNext(pMe->m_pIFileMgr, &pMe->fi);
szBuffer=pMe->fi.szName;
veekay.

Will renaming work?

Will renaming work?