Re: XForms: Filedirectory in browser

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 26 Sep 97 06:27:56 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I've got the following problem. I want to write the stuff of a
> directory into a Multibrowser. Is it possible to use xforms to read
> out a directory an put the result in a browser ? ...

Sure. Why not?

What is your specific problem?

You can read the contents of a directory using opendir(3), readdir(3),
etc., then use stat(2) or lstat(2) to get the information on each file
in the directory. You can then sort the directory data however you
wish with qsort(2) or your own favorite sort routine.

Refer to the manual pages for more detail.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/