473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

command-line arguments program

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
3 1709
? <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

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
? "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Hugh Macdonald | last post by:
I'm calling a command from within a python script and I need to be able to both catch the output (stdout and stderr) from it and also have the PID (so that I can kill it) I can do one or other...
8
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland...
2
by: Chris Bolus | last post by:
I'm a teacher using MS Access on an RMConnect 2.4 network. On some workstations both I and my students sometimes get an error message when attempting to insert a command button on a form which...
8
by: Charles Law | last post by:
I am implementing the command pattern in VB.NET, where the commands have been serialised. That is, I have several classes that all inherit from my base Command class, that implements ICommand...
4
by: FluffyCat | last post by:
New on November 29, 2005 for www.FluffyCat.com PHP 5 Design Pattern Examples - the Command Pattern. Since you all enjoyed the Visitor Pattern so much yesterday, today I have the Command Pattern...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
3
by: Michael Roebuck | last post by:
Hi all I'm very new to VB - I am trying to run a DOS command from within a VB2005 asp.net web site using a command button? The DOS command will take the form of the command followed by several...
0
by: czerwww | last post by:
Can someone please help me? I have class for database connection and I need set command.commandTimeout. How can I do that? Code: Imports System.Data.SqlClient Imports System.Data Public Class...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.