By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 911 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

command-line arguments program

P: n/a
Dear Guru,

this is about command-line argument program.
is it possible to generate excel file with the command line program ?

example of the argurment is: C:\test.exe <filename.txt>, which I
compiled test.cpp
if I execute:
test fileA.txt

it will generate two files (one text file, one excel file): fileB.txt
and fileC.xls / fileC.csv

I know the how to program for command-line argument, but I'm not sure
how to generate excel/csv file (with inserting data into it) ? do i
need to include certain library ? If you have good example, it is very
helpful.

Thanks.

Regards.

Sep 26 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
? <ne*****@gmail.com?????? ??? ??????
news:11********************@i3g2000cwc.googlegroup s.com...
Dear Guru,

this is about command-line argument program.
is it possible to generate excel file with the command line program ?

example of the argurment is: C:\test.exe <filename.txt>, which I
compiled test.cpp
if I execute:
test fileA.txt

it will generate two files (one text file, one excel file): fileB.txt
and fileC.xls / fileC.csv

I know the how to program for command-line argument, but I'm not sure
how to generate excel/csv file (with inserting data into it) ? do i
need to include certain library ? If you have good example, it is very
helpful.

Thanks.

Regards.
I'm not sure that I understand your question correctly, but a CSV file
is a plain text file, where semicolons (';') seperate the columns and
newlines ('\n') seperate the rows. You can try to save an excel document
as a CSV file and then open it with notepad to see the CSV format
yourself.
--
Papastefanos Serafeim
se******@otenet.gr
Sep 26 '06 #2

P: n/a

Papastefanos Serafeim wrote:
I'm not sure that I understand your question correctly, but a CSV file
is a plain text file, where semicolons (';') seperate the columns
Wouldn't that be an SSV file?

Gavin Deane

Sep 26 '06 #3

P: n/a
? "Gavin Deane" <de*********@hotmail.com?????? ??? ??????
news:11*********************@m73g2000cwd.googlegro ups.com...
>
Papastefanos Serafeim wrote:
>I'm not sure that I understand your question correctly, but a CSV file
is a plain text file, where semicolons (';') seperate the columns

Wouldn't that be an SSV file?

Gavin Deane
I guess you're right - but that's how excel saves a CSV file (!)

Just save a file as CSV through excel and open it with notepad to
see its structure ...
--
Papastefanos Serafeim
se******@otenet.gr
Sep 26 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.