Delete a file in bin/data/folder

hi,
what is the instruction to delete a file in bin/data/somefolder via code?
and move a file to another folder?
thank you

use remove c++ for deleting a file:

http://www.cplusplus.com/reference/cstdio/remove/

for moving a file can use “ofFile” to open the original file and write it into a new file that points to another location on the filesystem:

http://openframeworks.cc/documentation/utils/ofFile/

Good day

1 Like

Actually you can also remove a file with ofFile:

http://openframeworks.cc/documentation/utils/ofFile/#show_removeFile

2 Likes

fine, thank you