clivechen
Member level 3
writing to a log file in vxworks
hi, i want to log my log message into a file, just like a logfile of other OS, just like linux, window.
how can i do that?
i wrote the code like bellow:
fd=creat("log.txt",O_RDWR);
fd1=iosFdValue(fd);
logMsg("123 memory\n",0,0,0,0,0,0);
why i can't creat the "log.txt", why the logMsg can't be write into the log.txt.
i am a beginer,
thanks for any help.
hi, i want to log my log message into a file, just like a logfile of other OS, just like linux, window.
how can i do that?
i wrote the code like bellow:
fd=creat("log.txt",O_RDWR);
fd1=iosFdValue(fd);
logMsg("123 memory\n",0,0,0,0,0,0);
why i can't creat the "log.txt", why the logMsg can't be write into the log.txt.
i am a beginer,
thanks for any help.