diff --git a/src/save.c b/src/save.c index 127c6d59..09dbad0b 100644 --- a/src/save.c +++ b/src/save.c @@ -301,7 +301,7 @@ static int read_dataset(FILE *fd) while((ptr = fgets(line, sizeof(line), fd)) ) { /* after this line comes the binary blob made of nvars * npoints * sizeof(double) bytes */ - if(!strcmp(line, "Values:\n")) { /* this is an ASCII raw file. We don't handle this (yet) */ + if(!strcmp(line, "Values:\n") || !strcmp(line, "Values:\r\n")) { /* this is an ASCII raw file. We don't handle this (yet) */ free_rawfile(0); dbg(0, "read_dataset(): ASCII raw files can not be read. " "Use binary format in ngspice (set filetype=binary)\n");