Re: cross platform file/dir utility (linux+windows)



You might want to pick up a copy of the latest GTK book. It is an excellent reference for GTK (and GLIB, GIO, etc...).

http://www.amazon.com/Foundations-Development-Experts-Voice-Source/dp/1590597931/ref=sr_1_1?ie=UTF8&qid=1313158593&sr=8-1

-Jeff


On Thu, Aug 11, 2011 at 2:09 PM, Giuseppe Penone <giuspen gmail com> wrote:
I was thinking Glib (as well as GIO and GObject) functions do not work on windows, my fault.

Thanks a lot for the reply, cheers,
Giuseppe.



On Thu, Aug 11, 2011 at 21:04, Maarten Bosmans <mkbosmans gmail com> wrote:
2011/8/11 giuspen <giuspen gmail com>:
>
> Hi,
> I'm using C version of GTK and I need to check if files/folders exist, and
> eventually to create a folder.

Google for 'gtk file exists' and look at the first hit. It's a page
from the glib documentation.

> In linux I used <dirent.h> but this library doesn't work on windows.
> Can anyone point me in the right direction?

It would be nice if you searched a bit for yourself before asking for
a pointer, but here you go.
http://developer.gnome.org/glib/stable/glib-File-Utilities.html#g-file-test

Maarten


_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]