dbTalk Databases Forums  

Adding Header to a database/csv

comp.databases comp.databases


Discuss Adding Header to a database/csv in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Public Interest
 
Posts: n/a

Default Adding Header to a database/csv - 12-19-2003 , 10:03 AM






i have something like:
aaa, 11.11, 123456
bbb, 22.22, 122432
in a csv file

but i want it to look like
stock symbol, price, volume,
aaa, 11.11, 123456
bbb, 22.22, 122432

can i access to the csv file without reading the first line?



Reply With Quote
  #2  
Old   
Paul
 
Posts: n/a

Default Re: Adding Header to a database/csv - 12-20-2003 , 06:05 AM







test (AT) test (DOT) com says...

Quote:
i have something like:
aaa, 11.11, 123456
bbb, 22.22, 122432
in a csv file
but i want it to look like
stock symbol, price, volume,
aaa, 11.11, 123456
bbb, 22.22, 122432
can i access to the csv file without reading the first line?

And this has what, exactly, to do with databases?


Paul...


--

plinehan x__AT__x yahoo x__DOT__x com

C++ Builder 5 SP1, Interbase 6.0.1.6 IBX 5.04 W2K Pro

Please do not top-post.


Reply With Quote
  #3  
Old   
James Willmore
 
Posts: n/a

Default Re: Adding Header to a database/csv - 12-20-2003 , 08:08 AM



On Fri, 19 Dec 2003 16:03:46 GMT
"Public Interest" <test (AT) test (DOT) com> wrote:

Quote:
i have something like:
aaa, 11.11, 123456
bbb, 22.22, 122432
in a csv file

but i want it to look like
stock symbol, price, volume,
aaa, 11.11, 123456
bbb, 22.22, 122432

can i access to the csv file without reading the first line?
There are various CSV modules to handle this for you.

http://search.cpan.org and search for cvs.

HTH

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
These days the necessities of life cost you about three times
what they used to, and half the time they aren't even fit to
drink.


Reply With Quote
  #4  
Old   
James Willmore
 
Posts: n/a

Default Re: Adding Header to a database/csv - 12-20-2003 , 08:27 AM



On Sat, 20 Dec 2003 14:08:15 GMT
James Willmore <jwillmore (AT) remove (DOT) adelphia.net> wrote:
Quote:
http://search.cpan.org and search for cvs.
should be csv, not cvs. :-)

--
Jim

Copyright notice: all code written by the author in this post is
released under the GPL. http://www.gnu.org/licenses/gpl.txt
for more information.

a fortune quote ...
"... all the modern inconveniences ..." -- Mark Twain



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.