Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Search a .txt file with a .asp file

0 views
Skip to first unread message

Josh

unread,
Sep 3, 2004, 9:48:19 AM9/3/04
to
I would like to search a text file on my server and then alert me on
if the current date exist in that file. Any one have any code that
searches text files.

thanks in advance

Curt_C [MVP]

unread,
Sep 3, 2004, 10:27:51 AM9/3/04
to
You can use FSO to open the file and then just use InStr() to determine if
your value is in the file.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"Josh" <mustang_...@yahoo.com> wrote in message
news:5b3437d9.04090...@posting.google.com...

Jeff Cochran

unread,
Sep 3, 2004, 10:58:06 AM9/3/04
to
On 3 Sep 2004 06:48:19 -0700, mustang_...@yahoo.com (Josh) wrote:

>I would like to search a text file on my server and then alert me on
>if the current date exist in that file. Any one have any code that
>searches text files.

What would the current data be? You can use FSO and open, then read a
text file, and parse through it. If you knew what you were looking
for, an INSTR would probably find it as well.

Jeff

Josh Williams

unread,
Sep 7, 2004, 8:51:20 AM9/7/04
to

I am trying to search for

the current date, to see if it gets posted to this file.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

0 new messages