problem with fopen in Pro*C [message #237927] |
Wed, 16 May 2007 02:43 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
ataufique
Messages: 79 Registered: November 2006
|
Member |
|
|
Hi..
I am having some problem migrating my C programs in Pro*c
In c my working syntax is given below
if ((calls_file = fopen(filename,"w"))==NULL )
{
sprintf(error_buffer,"Error! Openning file %s",filename);
errmesg(5999,PROG_ID,error_buffer);
return ERROR;
};
fprintf(calls_file, "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM");
If i use the the same for pro*c this creates a file without any data i.e fprintf command doesn't write any thing to this file.
Please Help
Thanks
|
|
|
|