[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help for fopen()
- Date: Tue, 31 Jul 2007 15:12:31 -0400
- From: feng1 at bnl.gov (Kate Feng)
- Subject: Help for fopen()
I must have missed some simple setup steps that
fopen() does not seem to work anymore.
fopen("mydir/test.dat","w") returns error 2 : "/* No such file or
directory */"
even though it does exist.
fopen("test.dat","w") returns a file descriptor and
no error message. However, "test.dat" does not exist.
Even if "test.dat" exists and is world writable, it
does not seem to respond to the following
fprintf(fp, "test\n");
fflush(fp);
fsync(fileno(fp));
fclose(fp);
The file still remains empty and untouched.
Any assistance is highly appreciated.
Regards,
Kate