Click here to Skip to main content
15,914,500 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
CoderForEver14-Dec-09 2:59
CoderForEver14-Dec-09 2:59 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
#realJSOP14-Dec-09 3:01
professional#realJSOP14-Dec-09 3:01 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
Eddy Vluggen14-Dec-09 3:03
professionalEddy Vluggen14-Dec-09 3:03 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
#realJSOP14-Dec-09 4:27
professional#realJSOP14-Dec-09 4:27 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
Eddy Vluggen14-Dec-09 5:37
professionalEddy Vluggen14-Dec-09 5:37 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
#realJSOP14-Dec-09 6:28
professional#realJSOP14-Dec-09 6:28 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
OriginalGriff14-Dec-09 4:11
mveOriginalGriff14-Dec-09 4:11 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
OriginalGriff14-Dec-09 4:22
mveOriginalGriff14-Dec-09 4:22 
Decrypt: First, find out the password...

Because they aren't stored as straight text, you can't just read them and identify the words. The files contain heaps of other stuff: font, size, colour, location, lines, boxes, italics, bold, pictures, spreadsheets, etc. etc. etc. If all you are interested in is the text of the document and doing some textual analysis, then the best thing you can do is to throw away as much of the formatting as possible, and save the file as a straight .TXT file from Word and/or PDF. You can then read the whole thing in, and use string.Split (with space and reasonable puncuation) to break it into words.

All those who believe in psycho kinesis, raise my hand.

GeneralRe: How to read a file from any kind of documents and display its contents? Pin
CoderForEver14-Dec-09 2:45
CoderForEver14-Dec-09 2:45 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
EliottA14-Dec-09 3:23
EliottA14-Dec-09 3:23 
AnswerRe: How to read a file from any kind of documents and display its contents? Pin
Eddy Vluggen14-Dec-09 3:10
professionalEddy Vluggen14-Dec-09 3:10 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
CoderForEver14-Dec-09 4:18
CoderForEver14-Dec-09 4:18 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
Maximilien14-Dec-09 4:51
Maximilien14-Dec-09 4:51 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
Eddy Vluggen14-Dec-09 5:32
professionalEddy Vluggen14-Dec-09 5:32 
AnswerRe: How to read a file from any kind of documents and display its contents? Pin
Pete O'Hanlon14-Dec-09 3:37
mvePete O'Hanlon14-Dec-09 3:37 
QuestionHow to check if particular class is user defined? Pin
AksharRoop14-Dec-09 1:25
AksharRoop14-Dec-09 1:25 
AnswerRe: How to check if particular class is user defined? Pin
Eddy Vluggen14-Dec-09 1:37
professionalEddy Vluggen14-Dec-09 1:37 
GeneralRe: How to check if particular class is user defined? Pin
AksharRoop14-Dec-09 1:40
AksharRoop14-Dec-09 1:40 
AnswerRe: How to check if particular class is user defined? Pin
Dave Kreskowiak14-Dec-09 2:19
mveDave Kreskowiak14-Dec-09 2:19 
AnswerRe: How to check if particular class is user defined? Pin
freakyit14-Dec-09 3:06
freakyit14-Dec-09 3:06 
AnswerRe: How to check if particular class is user defined? Pin
Sir Dot Net14-Dec-09 11:50
Sir Dot Net14-Dec-09 11:50 
QuestionUnique Serial Number of an SD (Secure Digital) Memory Card Pin
Gaurav Dudeja India14-Dec-09 0:14
Gaurav Dudeja India14-Dec-09 0:14 
QuestionRe: Unique Serial Number of an SD (Secure Digital) Memory Card Pin
harold aptroot14-Dec-09 0:29
harold aptroot14-Dec-09 0:29 
Answer[Message Deleted] Pin
Gaurav Dudeja India14-Dec-09 0:31
Gaurav Dudeja India14-Dec-09 0:31 
GeneralRe: Unique Serial Number of an SD (Secure Digital) Memory Card Pin
harold aptroot14-Dec-09 0:40
harold aptroot14-Dec-09 0:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.