Does it have to be plain text?
Have you thought about using XML, then you can just apply a
stylesheet....something like...
<root>
<article>
<title>article title here</title>
<body>body text here</body>
</article>
</root>
I'm sure you could write a parser to convert you existing text files into
this format using filesystem object...
-----Original Message-----
From: jake williamson [mailto:jake.williamson@;28design.com]
Sent: Tuesday, October 29, 2002 5:37 AM
To: ActiveServerPages
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]