Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » How to read from and write to a table in a file (CSV)?
How to read from and write to a table in a file (CSV)? [message #10323] Mon, 02 July 2007 09:50 Go to previous message
$mike{is_here} is currently offline  $mike{is_here}
Messages: 12
Registered: July 2007
Promising Member
Hi,

I'm new to Ultimate (which I like very much) and look for a concept idea, i.e. which elements are most suited to use.

Suppose, I have a CSV table like this:

A,B,C
1,2,3
4,5,6


Reading it line-by-line is no problem. E.g. I can store each line as a String or (already decomposed) in a Vector<String> or Vector<Value>. Once I read the table from the file I'm interested in the columns. E.g. I'd like to get column C for further manipulation:

C, 3, 6


Suppose I changed it into somethig different, like:

D,100,200


I want to assemble a new table for storage, e.g.

D,B,C
100,2,3
200,5,6


I'm not aware that there is something ready-to-use for this purpose, besides ArrayCtrl, may be.

Thank you for your help.

Kind regards, Micha
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Opening window during Drag-Drop crashes app.
Next Topic: Geom/PlotterCtrl fixed plot
Goto Forum:
  


Current Time: Mon Apr 29 14:11:51 CEST 2024

Total time taken to generate the page: 0.02615 seconds