Reading a TEXT file and render it into multiple web pages

Reading a TEXT file and render it into multiple web pages

am 08.12.2006 09:48:41 von LukeSkywacko

Hi, I would like to know how I could accomplish this without using DB.

There's a long text file named "TEST.TXT"
The TEST file contains special character '=BA' which will be used as
pagebreak.
I want an ASP page that will read the TEST.TXT file and split it into
multiple web pages with navigation control. (eg.
)

If it is possible, a sample code would be greatly appreciated.
Thanks.

Re: Reading a TEXT file and render it into multiple web pages

am 08.12.2006 10:18:25 von exjxw.hannivoort

LukeSkywacko wrote on 08 dec 2006 in
microsoft.public.inetserver.asp.general:

> Hi, I would like to know how I could accomplish this without using DB.
>
> There's a long text file named "TEST.TXT"
> The TEST file contains special character 'º' which will be used as
> pagebreak.
> I want an ASP page that will read the TEST.TXT file and split it into
> multiple web pages with navigation control. (eg.
> )

1 Load the file in a variable.
2 Split the file: result = Split(theFile,"º")
3 Use only the part you need steered by a numbered querystring:
/dir/myfile.asp?page=3 [or a 404.asp can server.transfer nonexisting named
files.]

> If it is possible, a sample code would be greatly appreciated.
> Thanks.

You will have to start with your own programming,
[or hire a professional,] methinks.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)