[Gambas-user] Small problem with .insert
Gianni Piccini
gp at ...3050...
Sun Dec 9 13:52:13 CET 2012
I would to put in an array lists of some kinds of files. Code is similar
to following lines, "prints" are there to check what's happening..
question is, there is any way to use "insert" and read those hidden
files? This, on Gambas 3.1.1 and Debian.
dim files as string[]
files = RDir(directory, "*.html", gb.file)
print files.length
' prints 12250, correct
files.Insert(RDir(directory, "*.css", gb.file))
print files.length
'prints 12255, 5 new files added, correct
files.Insert(RDir(directory, "robots.txt", gb.file))
print files.length
' prints 12256, one new file, correct
files.Insert(RDir(directory, ".ht*", gb.file))
print files.length
' prints 12256, but there were two files to add
files.Insert(RDir(directory, ".htaccess", gb.file))
print files.length
' prints 12256, but there was one file to add
More information about the User
mailing list