473,394 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Reading a TEXT file and render it into multiple web pages

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)

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

Dec 8 '06 #1
1 1607
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)
Dec 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Thomas Philips | last post by:
I have a data file that I read with readline(), and would like to control the formats of the lines when they are printed. I have tried inserting escape sequences into the data file, but am having...
6
by: KevinD | last post by:
assumption: I am new to C and old to COBOL I have been reading a lot (self teaching) but something is not sinking in with respect to reading a simple file - one record at a time. Using C, I am...
1
by: Fadi.MM | last post by:
Hi Guys, I'm trying to create a library of ASP.NET user controls. What i'm trying to do is to encapsulate all my controls in one library (DLL) and re-using them in other projects. Everything is...
4
by: Andy G | last post by:
I have web articles that are in HTML and consist of 4 or 5 pages b/c of the amount of content. Ideally, I would like to leave the text separate into multiple pages for web viewing but when someone...
3
by: KLEIN Stéphane | last post by:
Hi, I would like print tabular values on terminal (stdout). Are there package to handle table text render ? Thanks for your help, Stephane
11
by: Freddy Coal | last post by:
Hi, I'm trying to read a binary file of 2411 Bytes, I would like load all the file in a String. I make this function for make that: '-------------------------- Public Shared Function...
6
by: =?Utf-8?B?UmljaA==?= | last post by:
'--this code works but only reads text into one column when contains multiple cols Dim ds1x As New DataSet Dim ConStr As String = _ "Provider=Microsoft.Jet.OLEDB.4.0;Data...
4
by: matt urbanowski | last post by:
Hi, I have a stylesheet (.css) file with classes in e.g. ..csHeader_tdLogo { background-position: top left; vertical-align: top; background-image: url(Images/Header_Logo.gif); width: 171px;...
2
by: Reggie | last post by:
Hi and TIA! I have a class file located in my root directory with all me web pages. I call/use the class and it works fine. I have no imports statements aspx or codebehind. My question is why? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.