Hello,
this is a little piece of code, I use to generate an index.html page.
(The index.html is a starting point to navigate through the local file structure and openend via a link from our web application.)
Workflow:
1) Read the file structure (recursive)
2) Write the html file (which includes, the images as inline html, the css and the complete javascript [all minified])
The files can be sorted by --> 0 = filename, 1 = file creation time, 2 = Size of file
Thanks to
KaFu and Mel