log file - Minix

This is a discussion on log file - Minix ; Hi all, I wrote program that count the messages between process i and J. I need to create a log file from the main.c to log this results. I tried to use the function open using C but that did ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: log file

  1. log file

    Hi all,
    I wrote program that count the messages between process i and J. I
    need to create a log file from the main.c to log this results. I tried
    to use the function open using C but that did not work. Any idea how i
    can do that ?

  2. Re: log file

    > I wrote program that count the messages between process i and J. I
    > need to create a log file from the main.c to log this results. I tried
    > to use the function open using C but that did not work. Any idea how i
    > can do that ?


    Hi,

    "did not work" is never enough to solve a problem. When attempting to
    get a solution to your problem in a Usenet group, you should post al
    relevant information:
    - What have you done? (including source code!)
    - What happened?
    - What did you expect would happen?

    The open function works just fine in Minix, so I think the problem is
    probably with your knowledge of C and/or POSIX. One particularly good
    introductory reference on this topic is the Standard C library
    reference (http://www.gnu.org/software/libc/manual/html_node/
    index.html). Another important source of information are the man pages
    in Minix itself.

    One other recommendation: the fopen and fprintf functions are much
    more convenient for text output than open and write, if that is what
    you want.

    With kind regards,
    Erik

+ Reply to Thread