473,387 Members | 1,573 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,387 software developers and data experts.

automatically create multiple web pages

I need the ability to automate the creation of 500 similar webpages
for an educational site. Let’s say approximately 100 lessons with
each lesson having 3-5 pages. I already have a program that allows me
to create a template and merge in files. The body of each webpage
will include a line of text and a picture.

Let’s say I will have a Folder on my computer called Text with files
called Lesson1a.txt, Lesson1b.txt, Lesson1c.txt, Lesson2a.txt,
Lesson2b.txt, Lesson2c.txt, Lesson2d.txt,…etc. Then a similar Folder
for the Images – Image1a.jpg, Image1b.jpg,…etc.

Is there a program or routine that can go through the Text folder and
create a file for each entry. Let’s say the files that are created
are called Lesson1a.it, Lesson1b,it,…etc. The program or routine
would create file with contents like:

<p align="center"><font size="6">Lesson1a.txt</font></p (The routine
would need to place the contents of Lesson1a.txt into the file.)

<img src="Lesson1a.jpg" alt="" border="0" width="180" (The routine
would need to place the text “Lesson1a.jpg” into the file.)

It would then create the Lesson1a.it file and then continue on for
each file entry in the Folder.
Jun 27 '08 #1
1 3485
la********@gmail.com writes:
<snip>
Let’s say I will have a Folder on my computer called Text with files
called Lesson1a.txt, Lesson1b.txt, Lesson1c.txt, Lesson2a.txt,
Lesson2b.txt, Lesson2c.txt, Lesson2d.txt,…etc. Then a similar Folder
for the Images – Image1a.jpg, Image1b.jpg,…etc.

Is there a program or routine that can go through the Text folder and
create a file for each entry.
<snip>

This is not really topical here. The answer will depend on what
system you are using and what tools you have available. For example,
if you have Perl (a scripting language) installed it is a matter of a
few lines to write what you want. In fact the task is simple enough
to be done with the command-line tool (what is know as a shell
script on Unix-like systems and a batch file in Windows).

You might get better help in some groups that is specific to you
system.

--
Ben.
Jun 27 '08 #2

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

Similar topics

11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
3
by: BlackFireNova | last post by:
I have an existing database, and I need to add another table to it. The database tracks equipment, however I have a need to track ancillary items which are purchased or added to some of the...
5
by: Sami | last post by:
Please bear with me, and if you answer this question, please do it step by step. I am new at Access, not at all sophisticated. I am using Office XP. This will need to be read in Access for...
0
by: ghadley_00 | last post by:
MS Access Create form / report with multiple pages using different background images Hi, Would like to have users fill out a multipage form, and then click a print button, which pulls up the...
4
by: Dotcom | last post by:
I have an ASP.NET application that is mysteriously acquiring height and width attributes on a particular IMG element on multiple pages. This is not being caused by someone editing or uploading new...
1
by: needin4mation | last post by:
I want to use the Menu and SiteMapPath. But it looks like I have the create the xml file that stores the data by hand. What if I had a site with 500 pages? That seems to be to cumbersome. Is...
4
by: vincemoon | last post by:
I can see from http://72.14.203.104/search?q=cache:6f-yXCR3f8kJ:www.readol.net/books/computer/WEb/XML%2520Programming/xmlproghtml/32ch08b.htm+%22metadata+about+any+entity%22&hl=en&gl=us&ct=clnk&cd=3...
1
by: Cramer | last post by:
Using 3.5: Suppose I have defined 20+ themes (including multiple graphics, ..skin files, and css files per theme), and I want to make those themes *available* to all the Web sites on my Web server....
0
by: raj3109 | last post by:
Hi experts, I’d like to have some helps from you guys. I need to create an app with C# and Crystal Report.Net using VS 2008 for a Landscape & Nursery company. The company will send out coupon...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.