For Programmers: Free Programming Magazines  


Home > Archive > Java Help > August 2007 > Read data from CSV File









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Read data from CSV File
christopher_board@yahoo.co.uk

2007-08-31, 8:40 pm

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

2007-08-31, 8:40 pm

christopher_board@yahoo.co.uk 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

2007-08-31, 11:39 pm

On Fri, 31 Aug 2007 15:50:43 -0700, christopher_board@yahoo.co.uk
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com