By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,192 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

Text problem

P: n/a
Someone posted a text problem, but wasn't specified correctly.
Problem:

Need to extract al sentences from the text file where there is more than 3
continuouse sentences with more than 5 words.
Please help

K.


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Hi, K

I'm not sure I follow exactly what you are asking. Assuming that the text
file isn't huge, I would read the text file as a block and parse it into a
string array as one sentence per element. Work your way through the array
counting words in each sentence and process the ones that fit your criteria.

If you're stuck on a specific problem, such as where to find string parsing
methods, please post to that effect.

Hope this helps,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| Reply-To: "Krakatioison" <kl****@sssbbbccc.com>
| Subject: Text problem
| Date: Wed, 21 Jul 2004 17:10:28 -0400
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Someone posted a text problem, but wasn't specified correctly.
|
|
| Problem:
|
| Need to extract al sentences from the text file where there is more than 3
| continuouse sentences with more than 5 words.
|
|
| Please help
|
| K.
|
|
|
|
| Posted Via Usenet.com Premium Usenet Newsgroup Services
| ----------------------------------------------------------
| ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
| ----------------------------------------------------------
| http://www.usenet.com
|

Nov 20 '05 #2

P: n/a

"John Eikanger [MSFT]" <jo****@online.microsoft.com> wrote in message
news:9w**************@cpmsftngxa06.phx.gbl...
I'm not sure I follow exactly what you are asking.


Personally I think the question is "Will you do my homework for me?"
Nov 20 '05 #3

P: n/a
Jeff,
in this case you're more than mistaken.
I need some ideas and then program it myself.
I do not need anyone to do this for me.
Maybe it's you who doesn't feel like helping anyone.
Did you think about the issue?
Did you try to help?
I don't see it anywhere in your answer.
k.

"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:eL**************@TK2MSFTNGP12.phx.gbl...

"John Eikanger [MSFT]" <jo****@online.microsoft.com> wrote in message
news:9w**************@cpmsftngxa06.phx.gbl...
I'm not sure I follow exactly what you are asking.


Personally I think the question is "Will you do my homework for me?"

Nov 20 '05 #4

P: n/a
I had the previouse problem, so thanks for making it clear K.
Can someone help?

Martin Ho
backup at:
http://www.groupsrv.com/dotnet/viewtopic.php?t=57438

Nov 20 '05 #5

P: n/a
Hi, Jeff

| Personally I think the question is "Will you do my homework for me?"

Hence design hints rather than a code sample. ;-)

John

This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| From: "Jeff Johnson [MVP: VB]" <i.***@enough.spam>
| Subject: Re: Text problem
| Date: Wed, 21 Jul 2004 19:58:27 -0400
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
|
| "John Eikanger [MSFT]" <jo****@online.microsoft.com> wrote in message
| news:9w**************@cpmsftngxa06.phx.gbl...
|
| > I'm not sure I follow exactly what you are asking.
|
| Personally I think the question is "Will you do my homework for me?"
|
|
|

Nov 20 '05 #6

P: n/a
ok, happy ?

"John Eikanger [MSFT]" <jo****@online.microsoft.com> wrote in message
news:Pf**************@cpmsftngxa06.phx.gbl...
Hi, Jeff

| Personally I think the question is "Will you do my homework for me?"

Hence design hints rather than a code sample. ;-)

John

This posting is provided “AS IS” with no warranties, and confers no rights. --------------------
| From: "Jeff Johnson [MVP: VB]" <i.***@enough.spam>
| Subject: Re: Text problem
| Date: Wed, 21 Jul 2004 19:58:27 -0400
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
|
| "John Eikanger [MSFT]" <jo****@online.microsoft.com> wrote in message
| news:9w**************@cpmsftngxa06.phx.gbl...
|
| > I'm not sure I follow exactly what you are asking.
|
| Personally I think the question is "Will you do my homework for me?"
|
|
|


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.