Forum Moderators: open

Message Too Old, No Replies

How to convert a text file to multi-page html?

         

kingJames

3:53 am on Jun 15, 2005 (gmt 0)

10+ Year Member



Hello, guys

I got tons of .txt files to convert. I want to convert them to the multi-page .html files, such as a.txt to a-1.html, a-2.html etc.
I had a complex solution, that is, firstly use a program to divide the a.txt to a-1.txt, a-2.txt with setting up the file size limit such as 100k. Then I change the extension .txt to .html using another program. Finally, the .html files are modified by a program with a customized template.
However, the program used to change the html files is shareware with some limits. The worst is that freeware is too old for me to contact the author.

Anyone can give me some ideas about this plz? Such as a CMS with the function of automatic pagination? OR some programs can solve this? Thanks...

-- James

Krapulator

6:57 am on Jun 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I reckon I'd whip up a little ASP routine to solve this.

Read the files with FSO, dump them into a html template and then write the html pages back out with FSO

kingJames

10:50 pm on Jun 16, 2005 (gmt 0)

10+ Year Member



Thanks, Krapulator

But I don't know about ASP. Now I am learning PHP and Java.
Well, I think only the customerized programs can solve this.