Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Input and output to Excel file in c + +?
How to get data from Excel files and how to get out of the Excel file.
How is the output file line by line???
Please answer with examples..
I would like in this example, I get the input file, and to give the output file.
I'll file this program, but can not get the input and output.
You, with an input and output, complete my program.
Thanks for the answer you early.
XML
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
#define FILE_IN "exel.xlsx"
#define FILE_OUT "report.xlsx"
int main( ){
    string a;
    ifstream input;
    ofstream output;
    input.open(FILE_IN);
    output.open(FILE_OUT);
    input.close();
    output.close();
    return 0;
    }

string a input.
string a output.
Posted
Updated 23-May-12 7:40am
v17
Comments
Maciej Los 21-May-12 12:16pm    
What have you done so far? What's the problem?
sajad abbasi 22-May-12 15:27pm    
I can not do anything to get the input file
And to send output.
Richard MacCutchan 21-May-12 18:11pm    
Why have you bumped this up the queue without adding any further information? You have been given some links to investigate, now it's up to you to roll your sleeves up and get to work.
lewax00 23-May-12 12:30pm    
Bumping your question up every day without making any attempt to follow the advice of people who have already tried to help you will not magically get you an answer.

Lots of suggestions here[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 21-May-12 12:23pm    
Fair enough, a 5.
--SA
Maciej Los 21-May-12 16:11pm    
I agree with you, SA ;)
My 5 too!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-May-12 18:35pm    
Useful links, could be helpful, a 5.
--SA
Maciej Los 29-May-12 4:39am    
Thank you ;)
You cannot read and write Excel files as streams, they have a structure of their own.

Go away and study the links I gave you yesterday, there is even a CodeProject article that will show you exactly how to get started.
 
Share this answer
 
Comments
sajad abbasi 23-May-12 12:27pm    
You can introduce a method for the Excel file.
Richard MacCutchan 23-May-12 12:30pm    
What does that mean? I have told you where to find the answers; go and look for yourself.

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