I have a word document I want to parse with C#. There are plenty of tutorials out there, but I have a hard time deciding what library to use. I found the following dlls:
These are all I found on the web. Which one should I use? Which of those are obsolete?
Reading a File Given below is the simplest function to read a single character from a file − int fgetc( FILE * fp ); The fgetc() function reads a character from the input file referenced by fp. The return value is the character read, or in case of any error, it returns EOF.
fscanf Function in C This function is used to read the formatted input from the given stream in the C language. Syntax: int fscanf(FILE *ptr, const char *format, ...) fscanf reads from a file pointed by the FILE pointer (ptr), instead of reading from the input stream.
You can also do it using NetOffice
Site: http://netoffice.codeplex.com/
Using it you don't need to worry about versions and "Syntactically and semantically identical to the Microsoft Interop Assemblies" so you do your coding the same way.
Some other advantages:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With