hi. in a variable name I have the name of a file. how can I open it?
this doesn' t work. it shows me "segmentation fault". why?Code:char name[14]="name.bmp";
FILE *image=fopen(name, "rb");
Printable View
hi. in a variable name I have the name of a file. how can I open it?
this doesn' t work. it shows me "segmentation fault". why?Code:char name[14]="name.bmp";
FILE *image=fopen(name, "rb");
The problem probably lies elsewhere.