If you know the directory you want to use, then supply
the full path of the file to your code eg
FILE *ffp
ffp== fopen("/data/inbox/myfile", "w"
dickiebird has added an extra = in his code snippet, == will be an equate test not an assignment of the return code from the fopen call to the ffp variable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.