We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,831 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

read csv file

i am developing an app that can import csv file and display its content on the text area of the GUi. the challenge am facing is calling the readfile method from the event listener to display the data. the readfile method is void and wouldnt be accepted. based on my findings the readfile method has to return an array after reading the file,spliting, and storing in a 2 dimensional array. i have been on this all day, any1 care to put me tru on how to write this code? would be glad. my original idea was to dispay the data on a table already provided on the gui.. but it seems more complex than i thought so i suggested to go with displaying the data on the text area.

2
Contributors
1
Reply
14 Minutes
Discussion Span
9 Months Ago
Last Updated
2
Views
abbelylee
Newbie Poster
18 posts since Jul 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Yes, it would make sense for the readFile method to return the data it has read. A 2D array is one sensible option. It's straightforward to create a table that displays a 2D array - all you need is a second array that has the column names.
Post what you have done so far and someone will help move you in the right direction.

JamesCherrill
... trying to help
Moderator
8,513 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0598 seconds using 2.68MB