[Tutor] opening a file directly from memory

Kent Johnson kent37 at tds.net
Tue Nov 17 22:56:52 CET 2009

On Tue, Nov 17, 2009 at 1:37 PM,  <mjekl at iol.pt> wrote:
>> Alan Gauld wrote:
>>> <mjekl at iol.pt> wrote

>>> If you do you can call it explicitly, but if you do not then you need to
>>> find a way of getting the OS to tell you, or to leave it to the OS.
> I'm interested in nthis for the sake of generalizing (which is better). How
> can I get the OS to tell me which program to use. Or alternatively, how to
> tell the OS to open it - assuming that since the os knows which program to
> use it will just use it (perhaps too big an assumption ;-)

The "desktop" package provides a portable open() function:

It came out of this discussion (extensive, with links):


More information about the Tutor mailing list