Am 08.05.2011 20:01, schrieb Peter Stuge: > if(!strncmp(line[strspn(line," ")],"\r\n",2) continue; More like: char val=line[strspn(line," ")]; if (val=='#' || val=='\n' || val=='\r') continue; This has the benefit of handling " # comment" and mac-style newlines, too. Patrick