You are here:

C/Is there a limitation on fopen function?

Advertisement


Question
Hi Narendra,
          I noticed there is a limitation on fopen function. It does not seem to open a filename 'RESEVOIR-GASKET.LST'. I tried to rename the filename to be freed from '-', but it did not work as well. Do you have any clue on this?


Answer
If at all there is limitation, then that must be from the Operating System.
But, as I know, all the OS that I know of can open the filename that you have mentioned.
If you are on Unix, try to use vi command to open the said file.
If vi is able to open, then fopen() will also open and if it is not opening, then it is a bug in the code that you have written!

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.