Android - store .txt filenames in array
Posted
by JustMe
on Stack Overflow
See other posts from Stack Overflow
or by JustMe
Published on 2010-04-13T14:03:04Z
Indexed on
2010/04/13
14:13 UTC
Read the original article
Hit count: 401
Hello! I would like to store only .txt filenames from a specific dir (let's say: /sdcard/docs/) into an String array.
Example: In /sdcard/docs/ there are 5 files: 'foo.txt', 'bar.jpg', 'foofoo.txt', 'loool.png' and 'foobar.txt'. I would like to get array with contents: "foo.txt", "foofoo.txt", "foobar.txt"
How could I do it? Thanks =)
© Stack Overflow or respective owner