![]() |
|
#1
|
|||
|
|||
fopen fails to create a file pointerDear Friends,
I am very glad to have found this forum, you are doing a great job! I have a question regarding the access mode "at+" of fopen(). Please see the following pseudo codes CPP / C++ / C Code:
aFunction is called many times in my program. However, after a number of calls, an error occurred and the program stopped. It seems to me that fopen() can not open aTextFile, beacuse in the debugging window it showed "pf 0x00000000". Can anyone suggest a reason why it gave me this? I am using Microsoft Visual Studio .NET 2003, thank you very much in advance! David Last edited by LuciWiz : 01-Jun-2005 at 23:38.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|
#2
|
|||
|
|||
|
Maybe you system can tell you.
CPP / C++ / C Code:
|
|
#3
|
||||
|
||||
|
Quote:
__________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
|
#4
|
|||
|
|||
|
Thank you for the reply Dave, and thanks also LuciWiz for correcting the format. I will make sure to post in the right format next time, WaltP.
Back to the post, the perror() function showed me "Too many open files". However, each time after a file is opened, I used fclose() to close it, so I am not sure why there are"Too many open files". Is there any other restriction? Thanks in advance! David |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 07:44 |
| [Tutorial] Pointers in C (Part II) | Stack Overflow | C Programming Language | 0 | 27-Apr-2005 17:36 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 10:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 11:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The