You are here:

C/Are all file format readable by C programming?

Advertisement


Question
Hi,
  It's me again. I am facing another problem again with openning a file named 'cabinet_1273-1-v1.bom.3'. It's with an odd file format. When I tried to run my program, it reported that it failed to open the file. I could not find any reason for this failure online as well as from my reference book and hope that you can share some insight to this problem. Thank you! :)  

Answer
Are you trying to open it with fopen() or open()?
If you are using one of these, then you can check the errno global variable to find the error number.
And check the explanation for that errorno in error.h file and you will know the reason.

Let me know if you need any assistance regarding errno?

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.