MySQL Forums
Forum List  »  UDF

for help about mysql UDF function
Posted by: john wu
Date: October 24, 2013 12:21AM

hi...i am writing a mysql udf function~ when it runs, it will create a txt file in C:\\test.txt. but my code :
FILE * fp = NULL;
fp = fopen("C:\\test.txt","a+");
if (fp==NULL)
WinExec("C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE",1);
fputs("abc\r\n", fp);
fputs("def\r\n", fp);
it (the function 'fopen') always return NULL
can you help me ?please ...

Options: ReplyQuote

Written By
for help about mysql UDF function
October 24, 2013 12:21AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.