number of open files....

This is a discussion on number of open files.... within the C Programming forums, part of the General Programming Boards category; ->How can I increase the allowable number of simultaneously open files? ->What's wrong with the call "fopen("c:\newdir\file.dat", "r")"?...

  1. #1
    Prakash
    Guest

    Question number of open files....

    ->How can I increase the allowable number of simultaneously open
    files?
    ->What's wrong with the call "fopen("c:\newdir\file.dat", "r")"?

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Code:
    FILE *myfile;
    myfile= fopen("Somefile.txt", "r");
    fprintf(myfile,"MOO!");
    fclose(myfile);
    and you can open as many files as you want, as far as I know. Just be sure to close them all.

  3. #3
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    ->What's wrong with the call "fopen("c:\newdir\file.dat", "r")"?

    you have to use double backslashes

    fopen("c:\\newdir\\file.dat", "r")
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. open and read bmp image files
    By cnewbie85 in forum C Programming
    Replies: 2
    Last Post: 05-19-2009, 01:36 AM
  2. Number of files in a folder
    By gadu in forum C Programming
    Replies: 1
    Last Post: 10-09-2008, 06:16 PM
  3. adding a number to a number
    By bigmac(rexdale) in forum C Programming
    Replies: 11
    Last Post: 10-24-2007, 12:56 PM
  4. open files in a loop in C
    By podiyan in forum C Programming
    Replies: 2
    Last Post: 10-19-2007, 01:50 AM
  5. Issue w/ Guess My Number Program
    By mkylman in forum C++ Programming
    Replies: 5
    Last Post: 08-23-2007, 01:31 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21