Search:

Type: Posts; User: dasbush

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    8,242

    Works like a charm, thanks a bunch!

    Works like a charm, thanks a bunch!
  2. Replies
    7
    Views
    8,242

    I suppose I could leave it and have the user...

    I suppose I could leave it and have the user redirect... but I would prefer the other way (out of simple curiosity at this point).

    Edit:


    I'll look into this and see how it goes.
  3. Replies
    7
    Views
    8,242

    dup2 equivalant on windows?

    I'm writing a program that calculates prime numbers and I would like to put the output to a file if the user gave a filename for an argument.

    Unfortunately I have to use windows and not linux, so...
  4. I just figured it out... #include...

    I just figured it out...



    #include <stdio.h>
    #include <fcntl.h>

    int main()
    {
    int file;
  5. Thanks a lot, but that didn't really solve the...

    Thanks a lot, but that didn't really solve the issue...

    Basically, I am writing a simple shell. So the output from the commands entered into the shell (such as cp, rm, mv) would go to stdout and...
  6. Write to two files using only one file descriptor

    The problem I am facing is the need to write to stdout and to another file. I want the output to be displayed on the screen and into the file. This program is similar to the script command already...
Results 1 to 6 of 6