Help regarding C programing

Hi all,

I need some help regarding C programing. I am working on developing a small program of C in openSUSE and trying to use fopen function.
fp=fopen("//myFolder//file.txt", “r”);

But I am getting Segmentation Fault. My file is placed in subfolder. If I place file on outside subfolder it works fine.

Can any one help me in this problem. I know that it is very small issue, but I shall really appriciate your help.

Thanks
Waheed

The precise error is : No such file or directory

I have resolved the issue. It should be
fp=fopen(“myFolder/file.txt”, “r”);