1
/**********************************************************************
2
Copyright (C) 1998-2001 by OpenEye Scientific Software, Inc.
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation version 2 of the License.
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
***********************************************************************/
25
class oeifstream : public ifstream
28
bool SafeGetline(char *buffer,int size)
30
if (!getline(buffer,size)) return(false);
32
char badchar1 = '\015';
33
char badchar2 = '\032';
37
for (p1 = p2 = buffer;*p2 != '\0';)
39
if (*p2 == badchar1 || *p2 == badchar2)