5

I am new to Android. I've created a .csv file in SD card. Now I want to open this file but unable to do this.

Please help me on how to open a .csv file.

Mudassir
  • 14,250
  • 8
  • 62
  • 86
shiva
  • 151
  • 2
  • 3
  • 6
  • May be, this post help you. http://stackoverflow.com/questions/5360628/get-and-parse-csv-file-in-android – Mudassir Apr 28 '11 at 10:21
  • possible duplicate of [How to parse the CSV file in android application?](http://stackoverflow.com/questions/6057695/how-to-parse-the-csv-file-in-android-application) – Lie Ryan Oct 16 '11 at 12:02

3 Answers3

0

You can open a .csv file like you would any text file. In order to read it, look for some examples in java - like Parse CSV File using StringTokenizer example

Rajath
  • 11,544
  • 7
  • 44
  • 60
-1

I posted some example code here: How to parse the CSV file in android application?

You would obviously have to change it slightly to access a file on the sdcard and not in the assets folder.

Community
  • 1
  • 1
nspo
  • 1,336
  • 15
  • 21