diff --git a/src/io/pifile.cpp b/src/io/pifile.cpp index 8d02201c..de80cf33 100755 --- a/src/io/pifile.cpp +++ b/src/io/pifile.cpp @@ -131,7 +131,7 @@ PIFile::PIFile(const PIString & path, PIIODevice::DeviceMode mode): PIIODevice(p fdi = -1; setPrecision(5); if (!path.isEmpty()) - openDevice(); + open(); } @@ -147,7 +147,6 @@ bool PIFile::openDevice() { close(); PIString p = path(); if (p.isEmpty()) return false; - //piCout << "fopen " << path_.data() << ": " << strType(mode_).data() << fd; if ((mode_ & PIIODevice::WriteOnly) == PIIODevice::WriteOnly) { if (!isExists(p)) { FILE * fd = fopen(p.data(), "w"); @@ -155,6 +154,7 @@ bool PIFile::openDevice() { } } fd = _fopen_call_(p.data(), strType(mode_).data()); + //piCout << "fopen " << path() << ": " << strType(mode_).data() << fd; bool opened = (fd != 0); if (opened) { fdi = fileno(fd);