40 |
|
|
41 |
|
} |
42 |
|
|
43 |
< |
istream = new ifstream(zconsFileName.c_str()); |
43 |
> |
istream = new std::ifstream(zconsFileName.c_str()); |
44 |
|
|
45 |
|
if (!istream){ |
46 |
|
std::cerr << "open " << filename << "error" << std::endl; |
51 |
|
} |
52 |
|
|
53 |
|
ZConsReader::ZConsReader(const std::string& filename){ |
54 |
< |
istream = new ifstream(zconsFileName.c_str()); |
54 |
> |
istream = new std::ifstream(zconsFileName.c_str()); |
55 |
|
|
56 |
|
if (!istream){ |
57 |
|
std::cerr << "open " << filename << "error" << std::endl; |
102 |
|
|
103 |
|
istream->getline(line, MAXBUFFERSIZE); |
104 |
|
|
105 |
– |
cout << line << std::endl; |
105 |
|
//skip the comment lines |
106 |
|
while(line[0] == '#') |
107 |
|
istream->getline(line, MAXBUFFERSIZE); |