Looping through a file, use ReadLine (part of the FSO), and just take your
value and try to SPLIT() it based on some sort of delimiter. A "=" might not
be a good delimiter though because then that excludes you from using it in
your text (unless you want to hard code that there's only ever going to be 2
elements in this array - the param/value).

Chris Tifer
http://www.emaialjoke.com


P.S. I'm assuming your example below would normally be on one line, but was
wrapped in the sending of the e-mail...

----- Original Message -----
From: "jake williamson" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 5:06 AM
Subject: reading 'lines' from text files for formatting


> hello!
>
> i'm building a really simple site based on reading text files into asp
> pages. it's all going great! but...
>
> is there a way i can read certain 'variables' into the page from the
> text files? for example, if i had in my text file:
>
> title=The Need For A New Approach
> body=This is where the main body of the text will go. This is where the
> main body of the text will go. This is where the main body of the text
> will go. This is where the main body of the text will go. This is where
> the main body of the text will go.
>
> can i then read them into the page in different places? the reason being
> that i need the 'title's to be in bold and the 'body' to be in regular.
>
> is there a way to do this???!
>
> cheers,
>
> jake
>
>
> ---
> You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
>


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to