resourcesOpenStream

fngio.input_stream.InputStream resourcesOpenStream(string path, gio.types.ResourceLookupFlags lookupFlags)

Looks for a file at the specified path in the set of globally registered resources and returns a #GInputStream that lets you read the data.

lookup_flags controls the behaviour of the lookup.

Parameters

pathA pathname inside the resource
lookupFlagsA #GResourceLookupFlags

Returns

#GInputStream or null on error.

Free the returned object with [gobject.object.ObjectWrap.unref]

Throws

[ErrorWrap]