openFileFromUrl function was used incorrectly both in main.cpp and the documentation.
openFileFromUrl