Is it possible to delete a file?

I have a simple question I can’t find any answer to:

When a file is written (created) is it possible to delete the file later if needed? Not just the content, the whole file I mean… so a check like “if file then…” will get right into the else part of the if-else?

If so, how can a file be deleted from a directory?

Thank you for your help!

Daniela

Yes it is possible.

Read the API documentation for LFS (lua file system) and IO provided below:

http://docs.coronalabs.com/api/library/io/index.html

http://docs.coronalabs.com/api/library/lfs/index.html

It will tell you all about how to save/load/delete files in Corona.

Thank you very much! I read the io api only and didn’t see the information in the lfs. THX!

Daniela

Yes it is possible.

Read the API documentation for LFS (lua file system) and IO provided below:

http://docs.coronalabs.com/api/library/io/index.html

http://docs.coronalabs.com/api/library/lfs/index.html

It will tell you all about how to save/load/delete files in Corona.

Thank you very much! I read the io api only and didn’t see the information in the lfs. THX!

Daniela