I have a number of files stored under res/raw
. E.g.:
yeh_vidhi_mangal.txt
om_jai_mahavir.txt
tumse_laagi_lagan.txt
I would like to iterate over these files in code. Something like:
Resources myResources = getResources();
for(int i = 0; i < ...;i++)
{
int id_of_ith_resource = ....
InputStream in = myResources.openRawResource(id_of_ith_resource);
// do my stuff
}
How to fill in the dots (...
) above?