Read one word form a text file

NickOlsen
05-16-2004, 02:55 PM
I have a text file and I want to be able to read just one word, not the whole line, or the whole file.

I am using System.IO.StreamReader right now and i can't seem to find anything that will read just one word at a time.

Any ideas??

Thanks

Iceplug
05-16-2004, 08:44 PM
That's because there isn't.
You need to use the StreamReader's .Read property to read until you read in a space character or a period, or a question or exclamation mark, or whatever else you want to define the end of a word. :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum