Forum Discussion
Altera_Forum
Honored Contributor
19 years agofopen don't work !!
Hi to all, I need to use the fopen function but it didn't work ? When i try a fopen it always returns NULL -> why it's ANSI C standart ?????? # include <stdio.h> FILE *fp; char...
Altera_Forum
Honored Contributor
19 years agoHi omikron123,
> t always returns NULL -> why it's ANSI C standart ?????? Just a crazy thought ... > char string[4000]; > ... > if (fp = fopen( string , "w")) ... maybe you need to pass fopen a valid path? Try initializing 'string' ;-) --Scott