Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey all,

I'm sorry first and foremost i have to declare that i am a programming blockhead. I need some quick help in this. And yes i wanna take up programming and am willing to learn but have not a clue what language i should take. I do however need quick aid in this one. Here goes nothing!

Alright, supposing i have thousands of text files containing details in such format, how do i put it in a csv with complete header.
==============
Company Name: Data Wizard Pty Ltd
Posted
Updated 1-Mar-10 0:15am
v3

CSV sounds like an easy format, until you look at embedded quotes and commas and line feeds in the file and forget about binary data.

If you must go down this road, you have quite a bit of work to do it right, unless you use a library.

XML files are MUCH more flexible.

Language choice is totally up to you. Higher level languages are easier to manipulate strings, and my personal choice is c#.
 
Share this answer
 
Actually i have been using textpipe from datamystic to sort the data out. What is left is just what i have posted here. As far as sorting out the format, textpipe has done beautifully. Do point me what i need to look at if i want to use C. Thank you.

Rgrds,
Sheila.
 
Share this answer
 
Try looking at Awk or Microsoft's LogParser. Not sure what your file format's are. If they really are logs, analog.cx would also be very useful.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900