IFileManager::IsReadOnly

If you're writing to a debug file, you should use CreateDebugFileWriter, and wrap the calling code in [if](API\Plugins\NetcodeUnitTest\if) ALLOW_DEBUG_FILES.