We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80cab04 commit 3b157adCopy full SHA for 3b157ad
checktestdata.cc
@@ -141,7 +141,7 @@ int main(int argc, char **argv)
141
if ( argc>optind+1 ) {
142
char *datafile = argv[optind+1];
143
ios_base::openmode mode = generate ? ios_base::out|ios_base::trunc : ios_base::in;
144
- fdata = fstream(datafile, mode);
+ fdata.open(datafile, mode);
145
if ( fdata.fail() ) {
146
cerr << "Error opening '" << datafile << "'.\n";
147
exit(exit_failure);
0 commit comments