save a mp3 file to device

Hi all,

I want to saving a  mp3 file from the resource directory to Device.

for example i want to save mp3 file to this path : /sdcard/Music .But I did not really succeed to doing so.

i use copyfile function and I’ve searched the forum and read the topics but do not find.

Please help me to find the true path.

please help me.

Corona SDK does not support accessing the SD card from Corona SDK.  You might be able to build your own copy function using LFS to access the files on the sd card and copy them to a standard location.

Rob

pleaese give me a example code .

Nobody can help me?

Where should I start?

Why do not you answer correctly?

I do not want you to write my code but I do not know how to do this, I need sample code.

We can’t write your code for you.  Perhaps a community member might take the time to do so.  There are tutorials on LFS and reading/writing files.   One of the problems you will run into is that /sdcard is not always the path to the SD card.  Some devices don’t have SD cards at all.  Corona SDK doesn’t provide a way to get the path of the SD card. 

Rob

please help me.

Corona SDK does not support accessing the SD card from Corona SDK.  You might be able to build your own copy function using LFS to access the files on the sd card and copy them to a standard location.

Rob

pleaese give me a example code .

Nobody can help me?

Where should I start?

Why do not you answer correctly?

I do not want you to write my code but I do not know how to do this, I need sample code.

We can’t write your code for you.  Perhaps a community member might take the time to do so.  There are tutorials on LFS and reading/writing files.   One of the problems you will run into is that /sdcard is not always the path to the SD card.  Some devices don’t have SD cards at all.  Corona SDK doesn’t provide a way to get the path of the SD card. 

Rob