kindly let me know how to open an excel file in c++
rekhamanoj
0
Newbie Poster
Recommended Answers
Jump to PostSince you didn't really specify....
#include <fstream> using namespace std; int main(int argc, char **argv) { fstream fin; std::string excel_file = "c:\myfile.xls"; fin.open(excel_file.c_str(), ios::in); if (fin.is_open()) { // excel file is opened fin.close(); } else { cout << "Failed To Open File" << endl; } }
Although, …
Jump to PostWell Xls files are written in BIFF format. therefore i think that we should read them in hexadecimal and then convert them into ASCII.
If it is possible for you to edit the excel file i think you should store it into ".csv" extention.
CSV stands for Comma …
All 5 Replies
Comatose
290
Taboo Programmer
Team Colleague
rekhamanoj
0
Newbie Poster
Sky Diploma
571
Practically a Posting Shark
kbshibukumar
1
Junior Poster in Training
Prakash.sit
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.