C++script to add headers to csv

Unitech Pt630d mobile computer, batch, 1...
November 12, 2009 at 04:10:28
Specs: Windows XP
I would like to create a c++ script that when a data.csv is created it adds headers to the csv for importing into another program.
The original data.csv looks like this:-

2,cake2,1.25,40 etc
and I would like it to look like:-

I appreciate your help.

See More: C++script to add headers to csv

Report •

November 12, 2009 at 06:13:52
Why to code a C++ program when a straightforward batch script suffices?

@echo off
echo.product,text,price,qty> header.csv
type file.csv >> header.csv
copy header.csv file.csv /Y
:: End_Of_Batch

Report •

November 14, 2009 at 10:52:21
Top man .

Thanks very much for your help.

Report •

Related Solutions

Ask Question