resources_open_stream


Description:


[ Version ( since = "2.32" ) ]
public InputStream resources_open_stream (string path, ResourceLookupFlags lookup_flags) throws Error

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

lookup_flags controls the behaviour of the lookup.

Parameters:

path

A pathname inside the resource

lookup_flags

A ResourceLookupFlags

Returns:

InputStream or null on error. Free the returned object with unref


Namespace: GLib
Package: gio-2.0