replace ./apc.ini with an absolute path Quoting hoorn666 <[EMAIL PROTECTED]>:
> Hello,
>
> I have some program, it works fine and starts at boot time. Now I have
> changed some lines so I can read a config file. This works fine when i
> start the program by hand via the console but it fails to autostart.
>
> These are the failing lines :
>
> FILE *fp;
>
> fp=fopen("./apc.ini","r");
> if(fp==NULL)
> {
> perror("No ini file");
> exit(1);
> }
>
> Many thanks
>
>
>
