I am running into a file error 32 after i do a fopen in my code. I have not found any documentation that covers this error. I found the definition in the Errno.h file. It is :<br>
<br>
#define EPIPE 32<br>
<br>
Here is part of my code:<br>
if( (stream = fopen( cfile, "r+b" )) != NULL )<br>
{<br>
numread = 1;<br>
if(feof(stream))<br>
{<br>
strcpy(lsuccess,"Feofrr"<br>
}<br>
if( ferror( stream ) ) <br>
{ <br>
lstats(ferror(stream),lsuccess);//error handler returns error 32 in lsuccess pointer<br>
}<br>
....do my commands<br>
}<br>
Note: I am running Microsoft Visual c++ 1.52 on a Dell Pentium 266. I am coding in straight c. I can NOT use c++ for this application.<br>
<br>
I am limited to these file functions<br>
<br>
clearerr, fgets, fread, fclose, fopen, fscanf, feof,fprintf,fseek,ferrror,fputs,ftell, fgetc, fwrite<br>
<br>
<br>
<br>
#define EPIPE 32<br>
<br>
Here is part of my code:<br>
if( (stream = fopen( cfile, "r+b" )) != NULL )<br>
{<br>
numread = 1;<br>
if(feof(stream))<br>
{<br>
strcpy(lsuccess,"Feofrr"<br>
}<br>
if( ferror( stream ) ) <br>
{ <br>
lstats(ferror(stream),lsuccess);//error handler returns error 32 in lsuccess pointer<br>
}<br>
....do my commands<br>
}<br>
Note: I am running Microsoft Visual c++ 1.52 on a Dell Pentium 266. I am coding in straight c. I can NOT use c++ for this application.<br>
<br>
I am limited to these file functions<br>
<br>
clearerr, fgets, fread, fclose, fopen, fscanf, feof,fprintf,fseek,ferrror,fputs,ftell, fgetc, fwrite<br>
<br>
<br>