For Programmers: Free Programming Magazines  


Home > Archive > ASP > December 2006 > Reading a TEXT file and render it into multiple web pages









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Reading a TEXT file and render it into multiple web pages
LukeSkywacko

2006-12-11, 6:57 pm

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. <FIRST> <PREVIOUS>
<NEXT> <LAST> )

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

Evertjan.

2006-12-11, 6:57 pm

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. <FIRST> <PREVIOUS>
> <NEXT> <LAST> )


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)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com