file manipulation in c
-
i am having a file in word. how can i open this as text file in cprogramming. i should not copy the contents, just have to open with text mode programmatically. is anyone having code for this. please help me. thanx in advance.
Arise Awake Stop Not Till ur Goal is Reached.
-
i am having a file in word. how can i open this as text file in cprogramming. i should not copy the contents, just have to open with text mode programmatically. is anyone having code for this. please help me. thanx in advance.
Arise Awake Stop Not Till ur Goal is Reached.
A word file ? Word has it's own file format, so it's not that simple. When you say C, do you mean C ( you're hopelessly lost ), C++ ( you're still lost ), or C++/CLI ( the forum you asked this in ) ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
A word file ? Word has it's own file format, so it's not that simple. When you say C, do you mean C ( you're hopelessly lost ), C++ ( you're still lost ), or C++/CLI ( the forum you asked this in ) ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
hi christian graus my question is how to open a file .doc as .txt. try to understand my question. if we have a file in xml we can open it in .txt mode. i need code for this in c programming. theres no separate forum to ask c queries. thats why i asked here.
Arise Awake Stop Not Till ur Goal is Reached.
-
hi christian graus my question is how to open a file .doc as .txt. try to understand my question. if we have a file in xml we can open it in .txt mode. i need code for this in c programming. theres no separate forum to ask c queries. thats why i asked here.
Arise Awake Stop Not Till ur Goal is Reached.
FILE *fp = NULL; fp = fopen("YourResume.doc", "r"); if(fp!=NULL) { fread(); or fscanf(); fgets()...blah();blah();blah(); } fclose(fp);
Never Work Hard! - Work Smart!!!
-
hi christian graus my question is how to open a file .doc as .txt. try to understand my question. if we have a file in xml we can open it in .txt mode. i need code for this in c programming. theres no separate forum to ask c queries. thats why i asked here.
Arise Awake Stop Not Till ur Goal is Reached.
deeps_cute wrote:
my question is how to open a file .doc as .txt. try to understand my question.
I understood it. If you mean to open it, and get back a bunch of garbage, the answer is to use a FILE. If you mean to read the text in a Word doc, I understood you, and gave you the right answer.
deeps_cute wrote:
i need code for this in c programming. theres no separate forum to ask c queries. thats why i asked here.
OK, but if you were going for a completely unrelated forum, why not go for VB.NET, or Vista, or something ? This forum is for .NET C++ questions only. The Visual C++ forum is the closest we have to a C forum.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
i am having a file in word. how can i open this as text file in cprogramming. i should not copy the contents, just have to open with text mode programmatically. is anyone having code for this. please help me. thanx in advance.
Arise Awake Stop Not Till ur Goal is Reached.
You need, at the very least, to back off a step and understand what it is you are trying to do. I suggest you go to http://www.wotsit.org, which is a source for a huge number of file format specifications. You can then understand what it is that a MS Word file is, how it's layed out, and how you could even begin to attempt your task. Your problem, for now, is that you wish to open it as a 'text' file and it is not a 'text' file.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein