Most elegant way to pick a random file from a directory?

jp1

Client
Регистрация
23.01.2011
Сообщения
234
Благодарностей
2
Баллы
0
{-File.GetString-|-\Resources\CAN A RANDOM FILE BE SELECTED HERE.txt-|-random-|-false-}

Can regexp be inserted there someway? something like \w+.txt?
 

gemini

Client
Регистрация
10.03.2011
Сообщения
160
Благодарностей
31
Баллы
28
instead of regexp you might put there another macro - there is special macro {-Directory.RandomFile-|-\Resources\-}
{-File.GetString-|-{-Directory.RandomFile-|-\Resources\-}-|-random-|-false-}
 

jp1

Client
Регистрация
23.01.2011
Сообщения
234
Благодарностей
2
Баллы
0
instead of regexp you might put there another macro - there is special macro {-Directory.RandomFile-|-\Resources\-}
{-File.GetString-|-{-Directory.RandomFile-|-\Resources\-}-|-random-|-false-}
shit.

thanks.

i was so obsessed with Directory.SubItem i didnt notice Directory.RandomFile above it. thanks
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)