LoadString exceptions
Monkey Forums/Monkey Programming/LoadString exceptions
| ||
Mark, Is it possible to make LoadString throw an exception if it can't load the file? I'd like to be able to handle a non-existent file, or perhaps any other kind of I/O exception. Maybe pass it an optional "throw exception" boolean parameter that defaults to false, or make a TryLoadString method that will do the same thing. That way it won't affect existing code. Thanks. |
| ||
+1 This would be helpful for detecting if a file or directory exists without importing os, or on platforms where the os module isn't available... |