I have a program which generates its own Wireshark pcap-file (sort of a network log if you havnt used it before). My app uses ANSI-C code to do this. In Android and Windows I simply use 'fopen' and 'fwrite' etc to write file to disc.
How does this work on iOS? What is the filepath I will supply to fopen? For example in Android I use "/sdcard" or similiar, what is it here? How do I actually extract the file afterwards from my iOS device?
EDIT: I need to use ANSI-C explicitly; all the writing is done in C libraries used in my iOS app