Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

tab delimited text

Name: Anonymous 2011-04-13 12:59

So I'm working on some C++ code to run through an excel spread sheet I've downloaded. I'm storing the entire input into a one dimensional array. The problem is when I save the document as a tab delimited text file it doesn't add an additional tab in front of the first variable in each row. So when I try to call the first value of each row it will additionally pull the last value of the row before it, reading the two of them as one value.

My question is, do you guys know of a solution off hand? Maybe a better program to save the sheet from, or a better converter? Also, since there are strings in the spread sheet with multiple commas, csv is not the answer I'm looking for.

Thanks a lot guys.

Name: Anonymous 2011-04-13 13:01

You need to insert a tab at the beginning of each line of a text file?  Ever heard of sed?

Name: Anonymous 2011-04-13 13:02

No I haven't, could you explain a bit?

Name: Anonymous 2011-04-13 13:15

>>3
refer to www.nambla.org for me details.

Name: Anonymous 2011-04-13 13:19

>>1

That's why it is useful to know perl.

Name: Anonymous 2011-04-13 13:25

excel spread sheet
into a one dimensional array


Storing two dimensional data in a one dimensional array.
( ≖‿≖)
Conclusion: I have been trolled.

Name: Anonymous 2011-04-13 16:48

>>6
What's wrong with you? A NxM 2d array can easily be stored in a 1d array of size N*M.

Don't change these.
Name: Email:
Entire Thread Thread List