[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: debugging
Hi,
> Basically, not enough
> information to help you here.
I the file which is attached is a extract of the function to open the
file.
mfg
Felix Kollmann, DG5PT
email: fkollmann@gmx.net
int def_config::open (char name [255])
{
FILE *datei;
char zeile [255];
if (!(datei= fopen ("jumpnodes.conf", "r")))
{
printf ("Fehler beim Öffnen der Datei '%s' :\n", name);
perror (name);
printf ("------- Fehler\n\n");
exit (1);
} else
{
printf ("Öffne Datei '%s' :\n",name);
}
while (fgets (zeile, 255, datei))
{
fscanf (datei, zeile);
if (!(zeile=="\n")) { konsole.do_command (zeile); }
}
fclose (datei);
printf ("prüfe...\n");
config.checkconfig();
printf ("fertig.\n");
return 0;
}