Android Question reading comma separated values text file

Branko Milosevic

Active Member
Licensed User
I need to read CSV from a text file line by line.

A mix of string and number types in each line and every line is same format. File has to be in this format and editable by hand.


this is the file format:

string, integer, double, string, integer
string, integer, double, string, integer
string, integer, double, string, integer
string, integer, double, string, integer
.......

Seems to many options to read text files but can't find a simple one for this.
 

frasc

Member
Licensed User
Notepad++ works excellent for everything, though I also use Excel for creating CSV files, particularly if I have to do a lot of manual editing of it as it is a bit more efficient for navigating around.
 
Reactions: eps
Upvote 0

Branko Milosevic

Active Member
Licensed User
+1 for using Excel or similar spreadsheet to create CSV files.
Notepad++ works excellent for everything, though I also use Excel for creating CSV files, particularly if I have to do a lot of manual editing of it as it is a bit more efficient for navigating around.
Excell puts CRLF line end which would fail in loadCSV. Unix uses LF and Mac CR. Windows MS-DOS convention is CRLF.
Non of them work with loadCSV which needs LF as for what I tested so far.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…