Try something like this:
InputStream is = this.getResources().openRawResource
(R.raw.csv_file);
BufferedReader reader = new BufferedReader(new InputStreamReader
(is));
try {
String line;
while ((line = reader.readLine()) != null) {
// do something with "line"
}
}
catch (IOException ex) {
// handle exception
}
finally {
try {
is.close();
}
catch (IOException e) {
// handle exception
}
}
--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.
On Aug 8, 9:46 am, Honest <[email protected]> wrote:
> Hello,
>
> I want to read csv file from res. Can some one tell me how can i read
> it ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---