Read data from CSV File  
Author Message
christopher_board





PostPosted: 2007-9-1 6:51:00 Top

java-programmer, Read data from CSV File Hi all. I am currently trying to develop a program that will read data
from a CSV file which includes computer names that have been exported
from Active Directory. I want my java program to read in the CSV file
and get the data and place it into the JList.

Is this possible.

Any help in this matter would be highly appreciated.

Thank you

 
Knute Johnson





PostPosted: 2007-9-1 7:54:00 Top

java-programmer >> Read data from CSV File email***@***.com wrote:
> Hi all. I am currently trying to develop a program that will read data
> from a CSV file which includes computer names that have been exported
> from Active Directory. I want my java program to read in the CSV file
> and get the data and place it into the JList.
>
> Is this possible.
>
> Any help in this matter would be highly appreciated.
>
> Thank you
>

A JList is only a single dimensional list. Is your data single
dimensional too? Comma delimited data is easily parsed with a Scanner
or StringTokenizer.

--

Knute Johnson
email s/nospam/knute/
 
Roedy Green





PostPosted: 2007-9-1 12:09:00 Top

java-programmer >> Read data from CSV File On Fri, 31 Aug 2007 15:50:43 -0700, email***@***.com
wrote, quoted or indirectly quoted someone who said :

>Hi all. I am currently trying to develop a program that will read data
>from a CSV file which includes computer names that have been exported
>from Active Directory. I want my java program to read in the CSV file
>and get the data and place it into the JList.

You don't need to reinvent that wheel. See
http://mindprod.com/jgloss/csv.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com