Read diffrent formats file in MFC.
Hi all,
i want to read diffrents formats(like: txt,doc,xls,csv,pdf etc) file,and inserts these values in ListCtrl of dialog box.
please tell me how can i do this.
please help me for this.
if possible please explain me with example.
thanks in advance.
Re: Read diffrent formats file in MFC.
To read .txt and .csv files you could use CStdioFile class.
To read .doc (MS Word) file you should use Word Automation.
To read .xls and .csv (MS Excel) files - Excel Automation.
I never needed to read .pdf files myself, so don't know how to do it. Use Google to get some appropriate information about it.
Re: Read diffrent formats file in MFC.
Hi,
go through this link here you will find file formats of your interests.
http://en.wikipedia.org/wiki/List_of_file_formats
according to file format read bytes from the file and store the information in listbox.
-Anant