root/trunk/src/tutorials/examples/list_html_file/list_html_files.d

Revision 6, 464 bytes (checked in by jcc7, 3 years ago)

Made more progress in developing convertToWiki and added some files.

Line 
1 /*
2
3 File:       recls.d
4 Author:     J C Calvarese
5 License:    Public Domain
6 Date:       2004-01-23
7 Purpose:    Demonstrate the fundamentals of using the recls library in D.
8
9 */
10
11 import std.recls;
12 import std.file;
13
14
15 void main()
16 {  
17     Search  search  =   new Search(getcwd(), "*.html", RECLS_FLAG.RECLS_F_FILES);
18     foreach(Entry entry; search)
19     {
20         with(entry)
21         {
22             printf("%.*s\n", File());
23         }
24     }
25 }
Note: See TracBrowser for help on using the browser.