The function findfile("Vers*") will throw a standard exception.
Analysis:
A quite early change in v1.0.9rc2 added the custom file extensions and changed the base object from Datafile to FileSystem, which means that the base file path now is the root folder instead of the base load path. The only consistent fi would be adding an optional argument to findfile(), which defines the base path for this call if findfile().
The standard exception results from a untested call to string::substr(string::find()).
Implementation:
An additional argument was added to findfile(STR1,STR2). In this case STR1 identifies the filename and STR2 the standard search path, which defaults to the NumeRe root directory. However, the search path may also be passed explicitely in STR1.
Documentation:
New feature of findfile() was added to the language files and to the search data bases.
Tests:
Final tests were passed successfully. Bug fix accepted.
Anonymous
Diff:
Diff:
Diff:
Diff: