BDBOpen() and file not found -> a new empty file is created
Bug 127 depend on Bug 104
BDBOpen() and file not found -> a new empty file is created
Note BDBOpen is only a read function not a write one.
Probably this is only a Windows problem and is a Windows problem
not a TOL problem (if Windows and not found then delete the new file)
Set inpBdb = BDBOpen("notfound.txt", 0, "\n", "", "");
Change History (6)
Owner: |
changed from danirus to manuelb
|
status_whiteboard: |
→ Amazing! Even giving the ios:in flag to the ifstream open creates the file!
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
status_whiteboard: |
Amazing! Even giving the ios:in flag to the ifstream open creates the file!
|
The problem is a wrong Visual C++ fstream's behaviour.
When opening a file, even when specifying ios::in mode, it would create it the file if
it was not found. Specifying ios::nocreate flag fixes the problem.
NOTE: ios::nocreate is NOT a member of type std::basic_ios; Therefore a
workarround for UNIX has been made as well to keep the old behaviour.
The fix for the problem is currently avaliable in the CVS.