![]() |
| ||
| Reading in a *.csv file and loading the data into an Array I would like to know any advice for creating a program that will read in a *.csv file and load the data into a 24 x 24 array for further processing. I am including a total of 48 records, so that you can see how the data looks and what I'll be working with.
|
| ||
| Re: Reading in a *.csv file and loading the data into an Array I don't know what a csv file is or what the structure is, but if its just a text a file with numbers like that, it's quite simple. The only thing to be careful about in this code is that it assumes there won't be more than 24 elements, or tokens, in each line of text.
|
| ||
| Re: Reading in a *.csv file and loading the data into an Array Thanks for the help. I only had to change the program slightly with changes to the logic for it to work properly. (Please see my code to see what I did). String [][] numbers = new String [24][24];:) |
| ||
| Re: Reading in a *.csv file and loading the data into an Array Quote:
|
| ||
| Re: Reading in a *.csv file and loading the data into an Array @chackboom Am pretty sure the O.P. must have found a solution to it long long ago, please check the dates before posting on such fossilized threads. |
| ||
| corrections in fossilized threads is certainly needed becuase those are still the source of information for many. |
| All times are GMT -4. The time now is 10:13 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC